Set default value for SearchBar as zero

Signed-off-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Camila Belo
2021-05-25 14:57:52 +02:00
committed by Eric Peterson
parent 83a293b5f9
commit 8f3994141b
2 changed files with 2 additions and 2 deletions
@@ -31,7 +31,7 @@ export const searchPage = (
<Content>
<Grid container direction="row">
<Grid item xs={12}>
<SearchBarNext />
<SearchBarNext debounceTime={100} />
</Grid>
<Grid item xs={3}>
<Card>
@@ -35,7 +35,7 @@ type Props = {
debounceTime?: number;
};
export const SearchBarNext = ({ debounceTime = 200 }: Props) => {
export const SearchBarNext = ({ debounceTime = 0 }: Props) => {
const classes = useStyles();
const { term, setTerm } = useSearch();
const [value, setValue] = useState<string>(term);