1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-30 22:46:39 -04:00

now safe to bump typescript to 4.6

This commit is contained in:
2022-03-07 15:01:30 -05:00
parent 34fccfefc3
commit ff9bb81d30
6 changed files with 84 additions and 90 deletions

View File

@ -40,7 +40,7 @@ const Icon = styled("svg", {
const Label = styled("span", {
fontSize: "0.95em",
fontWeight: 500,
marginLeft: "0.4em",
marginLeft: "0.7em",
"@medium": {
display: "none",
@ -61,7 +61,8 @@ export type MenuItemProps = {
const MenuItem = ({ icon: ItemIcon, href, text, current, className }: MenuItemProps) => {
const linkContent = (
<>
<Icon as={ItemIcon} /> {text && <Label>{text}</Label>}
<Icon as={ItemIcon} />
{text && <Label>{text}</Label>}
</>
);