feat: use system color theme

This commit is contained in:
Elias Schneider
2022-10-10 22:30:04 +02:00
parent db7edc4cd6
commit d902aae03f
5 changed files with 51 additions and 108 deletions

View File

@@ -1,8 +1,7 @@
import { ActionIcon, Avatar, Menu } from "@mantine/core";
import { NextLink } from "@mantine/next";
import { DoorExit, Link, Moon } from "tabler-icons-react";
import { DoorExit, Link } from "tabler-icons-react";
import authService from "../../services/auth.service";
import ToggleThemeButton from "./ToggleThemeButton";
const ActionAvatar = () => {
return (
@@ -13,13 +12,12 @@ const ActionAvatar = () => {
</ActionIcon>
</Menu.Target>
<Menu.Dropdown>
<Menu.Label>My account</Menu.Label>
<Menu.Item
component={NextLink}
href="/account/shares"
icon={<Link size={14} />}
>
Shares
My shares
</Menu.Item>
<Menu.Item
onClick={async () => {
@@ -29,10 +27,6 @@ const ActionAvatar = () => {
>
Sign out
</Menu.Item>
<Menu.Label>Settings</Menu.Label>
<Menu.Item icon={<Moon size={14} />}>
<ToggleThemeButton />
</Menu.Item>
</Menu.Dropdown>
</Menu>
);