| import { Button } from "@mui/material"; | import { Button } from "@mui/material"; | ||||
| import styled from "styled-components"; | import styled from "styled-components"; | ||||
| export const ComponentContainer = styled.div``; | |||||
| export const ComponentContainer = styled.div` | |||||
| min-width: fit-content; | |||||
| `; | |||||
| export const PrimaryButtonStyled = styled(Button)` | export const PrimaryButtonStyled = styled(Button)` | ||||
| background-color: ${props => props.variant === "contained" ? props.buttonColor : "transparent"}; | background-color: ${props => props.variant === "contained" ? props.buttonColor : "transparent"}; |
| const NavbarComponent = () => { | const NavbarComponent = () => { | ||||
| const [openDrawer, setOpenDrawer] = useState(false); | const [openDrawer, setOpenDrawer] = useState(false); | ||||
| const theme = useTheme(); | const theme = useTheme(); | ||||
| const matches = useMediaQuery(theme.breakpoints.down("sm")); | |||||
| const matches = useMediaQuery(theme.breakpoints.down("md")); | |||||
| const handleToggleDrawer = () => { | const handleToggleDrawer = () => { | ||||
| setOpenDrawer(!openDrawer); | setOpenDrawer(!openDrawer); | ||||
| fullWidth | fullWidth | ||||
| endAdornment={<SearchIcon />} | endAdornment={<SearchIcon />} | ||||
| size="small" | size="small" | ||||
| label="Pretražite proizvode" | |||||
| label="Pretražite proizvode..." | |||||
| id="fullWidth" | id="fullWidth" | ||||
| /> | /> | ||||
| <Box | <Box |
| width: 36%; | width: 36%; | ||||
| } | } | ||||
| @media (max-width: 900px) { | @media (max-width: 900px) { | ||||
| width: 27%; | |||||
| width: 54%; | |||||
| } | } | ||||
| @media (max-width: 600px) { | @media (max-width: 600px) { | ||||
| width: 36%; | width: 36%; |