-
-
Save mfrancois3k/80f047ded52743ce0d49849ba61e806d to your computer and use it in GitHub Desktop.
Material UI component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import TextField from "@material-ui/core/TextField"; | |
import useStyles from "./Styles"; | |
import peaboxlogoMini from "../../images/miniLogo.png"; | |
import Logo from "../Logo"; | |
import { Button, Grid } from "@material-ui/core"; | |
import SearchIcon from "@material-ui/icons/Search"; | |
import InputAdornment from "@material-ui/core/InputAdornment"; | |
const FilterSearchBar = ({ handleOpenModal }) => { | |
const classes = useStyles(); | |
return ( | |
<div className={classes.filterBarContent}> | |
<Grid container item xs={12} className={classes.gridContainer}> | |
<Grid item xs={12} sm={1} className={classes.logoWrapper}> | |
<Logo size={peaboxlogoMini} /> | |
</Grid> | |
<Grid item xs={12} sm={6} className={classes.searchWrapper}> | |
<form className={classes.form}> | |
<TextField | |
className={classes.searchInput} | |
fullWidth | |
placeholder="Search" | |
variant="outlined" | |
InputProps={{ | |
startAdornment: ( | |
<InputAdornment position="end"> | |
<SearchIcon /> | |
</InputAdornment> | |
) | |
}} | |
/> | |
</form> | |
</Grid> | |
<Grid item xs={12} sm={5} className={classes.buttonWrapper}> | |
<Button | |
name="login" | |
onClick={handleOpenModal} | |
className={classes.login} | |
> | |
Login | |
</Button> | |
<Button | |
variant="contained" | |
name="registration" | |
color="primary" | |
onClick={handleOpenModal} | |
className={classes.join} | |
> | |
Join | |
</Button> | |
</Grid> | |
</Grid> | |
</div> | |
); | |
}; | |
export default FilterSearchBar; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment