Skip to content

Commit 3fed6d7

Browse files
committed
undo changes
1 parent 7fa1254 commit 3fed6d7

File tree

4 files changed

+2
-119
lines changed

4 files changed

+2
-119
lines changed

apps/web/content/docs/components/navbar.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ Use this example to feature a dropdown menu when clicking on the user avatar ins
3535

3636
<Example name="navbar.withDropdown" />
3737

38-
## Navbar with Custom Bar/Menu Icon
39-
40-
Use this example to use the custom Open Menu/Bar Icon
41-
42-
<Example name="navbar.withCustomMenuIcon" />
43-
4438
## Theme
4539

4640
To learn more about how to customize the appearance of components, please see the [Theme docs](/docs/customize/theme).

apps/web/examples/navbar/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export { root } from "./navbar.root";
22
export { withCTAButton } from "./navbar.withCTAButton";
3-
export { withCustomMenuIcon } from "./navbar.withCustomMenuIcon";
43
export { withDropdown } from "./navbar.withDropdown";

apps/web/examples/navbar/navbar.withCustomMenuIcon.tsx

Lines changed: 0 additions & 107 deletions
This file was deleted.

packages/ui/src/components/Navbar/NavbarToggle.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import type { ComponentProps, FC } from "react";
44
import { FaBars } from "react-icons/fa";
5-
import { IoMdClose } from "react-icons/io";
65
import { twMerge } from "tailwind-merge";
76
import { mergeDeep } from "../../helpers/merge-deep";
87
import type { DeepPartial } from "../../types";
@@ -15,13 +14,11 @@ export interface FlowbiteNavbarToggleTheme {
1514

1615
export interface NavbarToggleProps extends ComponentProps<"button"> {
1716
barIcon?: FC<ComponentProps<"svg">>;
18-
closeIcon?: FC<ComponentProps<"svg">>;
1917
theme?: DeepPartial<FlowbiteNavbarToggleTheme>;
2018
}
2119

2220
export const NavbarToggle: FC<NavbarToggleProps> = ({
2321
barIcon: BarIcon = FaBars,
24-
closeIcon: CloseIcon = IoMdClose,
2522
className,
2623
theme: customTheme = {},
2724
...props
@@ -41,8 +38,8 @@ export const NavbarToggle: FC<NavbarToggleProps> = ({
4138
className={twMerge(theme.base, className)}
4239
{...props}
4340
>
44-
<span className="sr-only">{isOpen ? "Close" : "Open"} main menu</span>
45-
{isOpen ? <CloseIcon aria-hidden className={theme.icon} /> : <BarIcon aria-hidden className={theme.icon} />}
41+
<span className="sr-only">Open main menu</span>
42+
<BarIcon aria-hidden className={theme.icon} />
4643
</button>
4744
);
4845
};

0 commit comments

Comments
 (0)