8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11c1df1 commit ab503beCopy full SHA for ab503be
src/lib/@components/MainLayout.tsx
@@ -88,14 +88,18 @@ function Menu() {
88
]);
89
90
return (
91
- <Flex flex="1" justify="end">
+ <Flex flex="1" justify="end" gap="12px">
92
{menuItems.current.map(({ icon, title, href }) => (
93
<Button
94
key={title}
95
leftIcon={<Icon as={FontAwesomeIcon} icon={icon} />}
96
px="12px"
97
py="8px"
98
- variant="ghost"
+ variant={
99
+ router.pathname.split("/")[1] === href.replace("/", "")
100
+ ? "solid"
101
+ : "ghost"
102
+ }
103
onClick={() => {
104
router.push(href);
105
}}
0 commit comments