Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
blakenetz committed Jul 15, 2024
1 parent e2b4158 commit 5e372ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/sortControl/sortControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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<
Expand Down

0 comments on commit 5e372ba

Please sign in to comment.