Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Oct 25, 2023
1 parent b502b6f commit 355e3c9
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions src/components/NewsBar/NewsBarButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,30 @@ import type { Theme } from "@material-ui/core/styles";
import Link from "@material-ui/core/Link";
import makeStyles from "@material-ui/core/styles/makeStyles";

const useStyles = makeStyles<Theme, Pick<Message, "button">>((theme: Theme) => ({
bannerLink: {
[theme.breakpoints.down("md")]: {
marginLeft: "0px",
marginTop: theme.spacing(1)
const useStyles = makeStyles<Theme, Pick<Message, "button">>(
(theme: Theme) => ({
bannerLink: {
[theme.breakpoints.down("md")]: {
marginLeft: "0px",
marginTop: theme.spacing(1),
},
display: "inline-flex",
alignItems: "center",
borderRadius: 20,
padding: "6px 12px",
backgroundColor: "white",
color: ({ button }) => button.background,
marginLeft: "8px",
fontSize: "12px",
letterSpacing: "0.08em",
fontWeight: 600,
minHeight: "32px",
minWidth: "fit-content",
fontFamily: "Poppins",
wordWrap: "break-word",
},
display: "inline-flex",
alignItems: "center",
borderRadius: 20,
padding: "6px 12px",
backgroundColor: "white",
color: ({ button }) => button.background,
marginLeft: "8px",
fontSize: "12px",
letterSpacing: "0.08em",
fontWeight: 600,
minHeight: "32px",
minWidth: "fit-content",
fontFamily: "Poppins",
wordWrap: "break-word",
},
}));
})
);

export default function NewsBarButton({ button }: Pick<Message, "button">) {
const classes = useStyles({ button });
Expand Down

0 comments on commit 355e3c9

Please sign in to comment.