From 5e372ba6edfce3aac4d7057ccab90965efe5cddb Mon Sep 17 00:00:00 2001 From: Blake Netzeband <blake.netzeband@gmail.com> Date: Mon, 15 Jul 2024 13:06:57 -0600 Subject: [PATCH] code cleanup --- app/components/sortControl/sortControl.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/sortControl/sortControl.tsx b/app/components/sortControl/sortControl.tsx index 44d8179..26c18a5 100644 --- a/app/components/sortControl/sortControl.tsx +++ b/app/components/sortControl/sortControl.tsx @@ -10,7 +10,7 @@ import { capitalize, validate } from "~/util"; import styles from "./sortControl.module.css"; -interface SortData<T> { +interface SortControlProps<T> { /** * Text of label element * @default "Sort by" @@ -33,12 +33,12 @@ interface SortData<T> { initialValue: T; } -export default function Sort<T extends string>({ +export default function SortControl<T extends string>({ title = "Sort by", name, values, initialValue, -}: SortData<T>) { +}: SortControlProps<T>) { const [value, setValue] = useState(initialValue); const handleChange = useCallback<