Skip to content

Commit

Permalink
Make SearchBox throttle prop optional
Browse files Browse the repository at this point in the history
  • Loading branch information
taneliang committed Dec 20, 2020
1 parent e596bc5 commit ca2a38b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion website/src/views/components/SearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import styles from './SearchBox.scss';

export type Props = {
className?: string;
throttle: number;
throttle?: number;
isLoading?: boolean;
value: string | null;
placeholder?: string;
Expand Down
1 change: 0 additions & 1 deletion website/src/views/venues/VenuesContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ export const VenuesContainerComponent: FC<Props> = ({ venues }) => {

<SearchBox
className={styles.searchBox}
throttle={0}
value={searchQuery}
placeholder="e.g. LT27"
onChange={setSearchQuery}
Expand Down

0 comments on commit ca2a38b

Please sign in to comment.