diff --git a/package.json b/package.json index 8e873e1..2217b95 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "displacementx", - "version": "0.0.1-alpha.1", + "version": "0.0.1-alpha.2", "scripts": { "dev": "next dev", "build": "next build", diff --git a/src/components/pages/Generator/CanvasSection/CanvasSection.tsx b/src/components/pages/Generator/CanvasSection/CanvasSection.tsx index 627842f..ad4d8f2 100644 --- a/src/components/pages/Generator/CanvasSection/CanvasSection.tsx +++ b/src/components/pages/Generator/CanvasSection/CanvasSection.tsx @@ -163,7 +163,7 @@ export function CanvasSection() {
- +
+
-
- -
); } diff --git a/src/components/ui/Switch/Switch.tsx b/src/components/ui/Switch/Switch.tsx index 051ebfd..6de5b48 100644 --- a/src/components/ui/Switch/Switch.tsx +++ b/src/components/ui/Switch/Switch.tsx @@ -3,19 +3,20 @@ import clsx from 'clsx'; import {useId} from 'react'; type SwitchProps = { - readonly textOff: string; - readonly textOn: string; readonly isOn: boolean; readonly setIsOn: (checked: boolean) => void; + readonly labels?: [string, string]; }; -export function Switch({textOff, textOn, isOn, setIsOn}: SwitchProps) { +export function Switch({labels, isOn, setIsOn}: SwitchProps) { const id = useId(); return (
- + {labels && ( + + )} - + {labels && ( + + )}
); }