Skip to content

Commit

Permalink
feat: #comment cleaned up extra components
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed Sep 30, 2024
1 parent 440764d commit 5375565
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 131 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useAudioDeviceStore } from "./hooks/useAudioDeviceStore";
import DeviceNode from "./components/DeviceNode";
import ConnectionLine from "./components/ConnectionLine";
import DarkModeToggle from "./components/DarkModeToggle";
import DeviceCustomizationForm from "./components/DeviceCustomizationForm";
import AddDeviceForm from "./components/AddDeviceForm";
import { Device, Connection } from "./types/devices";
import { DOT_SIZE, GRID_SIZE } from "./constants/grid";
import EditDeviceForm from "./components/EditDeviceForm";
Expand Down Expand Up @@ -157,7 +157,7 @@ function AudioDeviceArrangerApp() {
<h2 className="text-xl font-bold mb-4 text-gray-800 dark:text-white">
Add Device
</h2>
<DeviceCustomizationForm onAddDevice={handleAddCustomDevice} />
<AddDeviceForm onAddDevice={handleAddCustomDevice} />
</div>

<Dialog.Portal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ import React, { useState } from "react";
import { Device, Port } from "../types/devices";
import * as Form from "@radix-ui/react-form";

interface DeviceCustomizationFormProps {
interface AddDeviceFormProps {
onAddDevice: (device: Omit<Device, "id">) => void;
}

const DeviceCustomizationForm: React.FC<DeviceCustomizationFormProps> = ({
onAddDevice,
}) => {
const AddDeviceForm: React.FC<AddDeviceFormProps> = ({ onAddDevice }) => {
const [name, setName] = useState("");
const [type, setType] = useState("synthesizer");
const [gridSize, setGridSize] = useState(100);
Expand Down Expand Up @@ -150,4 +148,4 @@ const DeviceCustomizationForm: React.FC<DeviceCustomizationFormProps> = ({
);
};

export default DeviceCustomizationForm;
export default AddDeviceForm;
124 changes: 0 additions & 124 deletions src/components/DeviceForm.tsx

This file was deleted.

0 comments on commit 5375565

Please sign in to comment.