diff --git a/src/components/ColorStand.tsx b/src/components/ColorStand.tsx index e6f0eef..947fa1c 100644 --- a/src/components/ColorStand.tsx +++ b/src/components/ColorStand.tsx @@ -5,8 +5,8 @@ import { useCopyToClipboard } from 'react-use'; import NoColor from '../assets/NoColor.svg'; import { useColorFunction } from '../ColorFunctionContext'; import styles from './ColorStand.module.css'; +import { HSegmentedControl } from './HSegmentedControl'; import { NotificationType, useNotification } from './Notifications'; -import { SegmentedControl } from './SegmentedControl'; type ColorValueProps = { value: string | null; @@ -102,7 +102,7 @@ export function ColorStand({ title, color }: ColorStandProps) {
- void; }; -export function SegmentedControl({ options = [], value, onChange }: SegmentedConttrolProps) { +export function HSegmentedControl({ options = [], value, onChange }: SegmentedConttrolProps) { const [selected, setSelected] = useState(value ?? options[0].value ?? null); const [sliderPosition, setSliderPosition] = useState(0); const [sliderWidth, setSliderWidth] = useState(0);