diff --git a/.changeset/selfish-rules-bathe.md b/.changeset/selfish-rules-bathe.md new file mode 100644 index 00000000..4895f4e4 --- /dev/null +++ b/.changeset/selfish-rules-bathe.md @@ -0,0 +1,5 @@ +--- +"@premieroctet/next-admin": patch +--- + +feat: update gear icon to logout icon (#460) diff --git a/packages/next-admin/src/components/Menu.tsx b/packages/next-admin/src/components/Menu.tsx index a1a11a98..6f866a65 100644 --- a/packages/next-admin/src/components/Menu.tsx +++ b/packages/next-admin/src/components/Menu.tsx @@ -6,6 +6,7 @@ import { TransitionChild, } from "@headlessui/react"; import { + ArrowRightEndOnRectangleIcon, ArrowTopRightOnSquareIcon, Bars3Icon, XMarkIcon, @@ -15,9 +16,7 @@ import dynamic from "next/dynamic"; import Link from "next/link"; import { Fragment, useState } from "react"; -import { Cog6ToothIcon, PowerIcon } from "@heroicons/react/24/solid"; import { useTheme } from "next-themes"; -import Image from "next/image"; import { useConfig } from "../context/ConfigContext"; import { useI18n } from "../context/I18nContext"; import { useRouterInternal } from "../hooks/useRouterInternal"; @@ -31,15 +30,6 @@ import { slugify } from "../utils/tools"; import Divider from "./Divider"; import ResourceIcon from "./common/ResourceIcon"; import Button from "./radix/Button"; -import { - Dropdown, - DropdownBody, - DropdownContent, - DropdownItem, - DropdownLabel, - DropdownSeparator, - DropdownTrigger, -} from "./radix/Dropdown"; const ColorSchemeSwitch = dynamic(() => import("./ColorSchemeSwitch"), { ssr: false, @@ -192,37 +182,15 @@ export default function Menu({ {user.data.name} - {hasDropdown && ( - - - - - - - - {user.data.name} - - - - - - - - - )} + ); };