change icon set

This commit is contained in:
tmshv committed 2022-10-13 15:08:58 +06:00
1 parent 671bc94562
commit fdf6ee302f
6 files changed
+8 -26

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
import { Button, ButtonProps } from "@/ui/Button"
import { HamburgerMenuIcon, Cross1Icon } from "@radix-ui/react-icons"
import { HiOutlineMenuAlt4, HiOutlineX } from "react-icons/hi"
export type MenuToggleProps = Omit<ButtonProps, "theme"> & {
open: boolean
@@ -7,9 +7,9 @@ export type MenuToggleProps = Omit<ButtonProps, "theme"> & {
export const MenuToggle: React.FC<MenuToggleProps> = ({ open, ...props }) => {
const icon = open ? (
<Cross1Icon width={24} height={24} />
<HiOutlineX size={24} />
) : (
<HamburgerMenuIcon width={24} height={24} />
<HiOutlineMenuAlt4 size={24} />
)
return (
<Button