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:
committed by
Eric Peterson
parent
83a293b5f9
commit
8f3994141b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user