Skip to content

Commit

Permalink
refactor(webapp): searchbar box component
Browse files Browse the repository at this point in the history
  • Loading branch information
fvives99 committed Oct 26, 2022
1 parent 5f29b28 commit 00663ec
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions webapp/src/components/SearchBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { makeStyles } from '@mui/styles'
import Card from '@mui/material/Card'
import CardContent from '@mui/material/CardContent'
import Chip from '@mui/material/Chip'
import Grid from '@mui/material/Grid'
import IconButton from '@mui/material/IconButton'
import InputAdornment from '@mui/material/InputAdornment'
import TextField from '@mui/material/TextField'
Expand Down Expand Up @@ -55,8 +54,8 @@ const SearchBar = ({
}, [rootFilters])

return (
<Grid container spacing={2}>
<Grid item xs={12}>
<div>
<div>
<Card>
<CardContent className={classes.cardContent}>
<Typography className={classes.title}>
Expand All @@ -83,7 +82,7 @@ const SearchBar = ({
onKeyDown={handleOnKeyDown}
onChange={handleOnChange('owner')}
/>
<Grid className={classes.chipWrapper}>
<div className={classes.chipWrapper}>
{chips.map((chip, index) => (
<Chip
key={`chip-${chip.name}-${index}`}
Expand All @@ -95,11 +94,11 @@ const SearchBar = ({
})}
/>
))}
</Grid>
</div>
</CardContent>
</Card>
</Grid>
</Grid>
</div>
</div>
)
}

Expand Down

0 comments on commit 00663ec

Please sign in to comment.