fix typings for component prop

This commit is contained in:
nflnkr 2022-12-15 17:07:16 +03:00
parent eed5cd99f5
commit 1f46334b90

@ -1,15 +1,10 @@
import { Button, styled } from "@mui/material";
import { ButtonProps } from "@mui/material/Button";
interface Props {
py?: string;
}
export default styled(Button)<ButtonProps & Props>(props => ({
export default styled(Button)({
width: "180px",
paddingTop: props.py || "10px",
paddingBottom: props.py || "10px",
paddingTop: "10px",
paddingBottom: "10px",
borderRadius: "8px",
boxShadow: "none",
}));
}) as typeof Button;