Skip to content

Commit

Permalink
fix: filter email + phone in planters (Greenstand#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
tranquanghuy0801 authored Sep 17, 2021
1 parent dca115a commit 2d0dc11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/FilterTopPlanter.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ function FilterTopPlanter(props) {
setFirstName('');
setLastName('');
setOrganizationId('');
setEmail('');
setPhone('');

const filter = new FilterModel();
props.onSubmit && props.onSubmit(filter);
Expand Down Expand Up @@ -145,13 +147,15 @@ function FilterTopPlanter(props) {
placeholder="Email"
value={email}
onChange={(e) => setEmail(e.target.value)}
onKeyDown={handleEnterPress}
/>
<TextField
className={`${classes.textField} ${classes.filterElement}`}
label="Phone Number"
placeholder="Phone Number"
value={phone}
onChange={(e) => setPhone(e.target.value)}
onKeyDown={handleEnterPress}
/>
<Button
className={classes.apply}
Expand Down

0 comments on commit 2d0dc11

Please sign in to comment.