change icon set
This commit is contained in:
1 parent
671bc94562
commit
fdf6ee302f
6 files changed
+8
-26
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user