Jovan Petrovic 3 лет назад
Родитель
Сommit
2f280df1b6

+ 3
- 1
src/components/Buttons/PrimaryButton/PrimaryButton.styled.js Просмотреть файл

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"};

+ 2
- 2
src/components/MUI/NavbarComponent.js Просмотреть файл

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

+ 1
- 1
src/components/MUI/NavbarComponent.styled.js Просмотреть файл

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%;

Загрузка…
Отмена
Сохранить