Skip to content

Commit

Permalink
Run prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AnibalDBXD committed Sep 11, 2022
1 parent e5c224d commit 641a3b6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
23 changes: 10 additions & 13 deletions modules/shared/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ const Menu = () => {
<Box display={{ base: "none", lg: "flex" }}>
{Links.map((link) => {
if (link.onClick) {
return <Button onClick={link.onClick} variant="link"><Text variant="navbar">
{link.title}
</Text></Button>;
return (
<Button onClick={link.onClick} variant="link">
<Text variant="navbar">{link.title}</Text>
</Button>
);
}
return (
<Text key={link.href} variant="navbar">
<Link href={link.href}>
{link.title}
</Link>
<Link href={link.href}>{link.title}</Link>
</Text>
);
})}
Expand All @@ -75,18 +75,15 @@ const Menu = () => {
bottom="5vh"
left="2vh"
onClick={link.onClick}
variant="link">
<Text variant="drawer">
{link.title}
</Text>
variant="link"
>
<Text variant="drawer">{link.title}</Text>
</Button>
);
}
return (
<Text key={link.href} variant="drawer">
<Link href={link.href || ''}>
{link.title}
</Link>
<Link href={link.href || ""}>{link.title}</Link>
</Text>
);
})}
Expand Down
3 changes: 1 addition & 2 deletions modules/shared/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const colors: CustomColors = {
};

const components: Theme["components"] = {

Button: {
baseStyle: {
height: "auto",
Expand Down Expand Up @@ -86,7 +85,7 @@ const components: Theme["components"] = {
size: "md",
},
},

Text: {
variants: {
label: {
Expand Down
3 changes: 2 additions & 1 deletion pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ const LoginPage: NextPage & { redirectIfAuthenticated: boolean } = () => {
marginTop={0}
variant="link"
colorScheme="blue"
size="sm">
size="sm"
>
¿Olvidastes tu contraseña?
</Button>
</Link>
Expand Down

0 comments on commit 641a3b6

Please sign in to comment.