KenjiPcx / Microsoft-Imagine-Cup-2024-FeynmanLearn

https://delightful-beach-0f72d6303.4.azurestaticapps.net/
MIT License
1 stars 0 forks source link

Navbar bug #66

Open KenjiPcx opened 9 months ago

KenjiPcx commented 9 months ago

We are using the menu component wrongly, it outputs errors

<Menu withArrow>
            <Menu.Target>
              <NavButton />
            </Menu.Target>
            <Menu.Dropdown>
              <Menu.Label>Navigation</Menu.Label>
              <Menu.Item
                component={Link}
                to={"/"}
                icon={<IconHome style={{ width: rem(14), height: rem(14) }} />}
              >
                Home
              </Menu.Item>
              <Menu.Item
                component={Link}
                to={"/sessions/new"}
                icon={
                  <IconNewSection style={{ width: rem(14), height: rem(14) }} />
                }
              >
                New Session
              </Menu.Item>
              <Menu.Item
                component={Link}
                to={"/sessions"}
                icon={<IconPhoto style={{ width: rem(14), height: rem(14) }} />}
              >
                Past Sessions
              </Menu.Item>
            </Menu.Dropdown>
          </Menu>

We should define buttons similarly to the settings button