Skip to content

Commit

Permalink
lfg
Browse files Browse the repository at this point in the history
  • Loading branch information
irsyadadl committed Oct 23, 2024
1 parent 97ffe4b commit 092dc6c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
4 changes: 3 additions & 1 deletion app/blocks/sidebar/sidebar-01/app-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ export function AppSidebar(props: React.ComponentProps<typeof Sidebar>) {
<Sidebar.Item icon={IconPersonAdd} href="#">
Add New Member
</Sidebar.Item>
<Sidebar.Item href="#">Manage Roles</Sidebar.Item>
<Sidebar.Item icon={IconCirclePerson} href="#">
Manage Roles
</Sidebar.Item>
</Sidebar.Section>
</Sidebar.Content>
<Sidebar.Footer className="lg:flex lg:flex-row hidden items-center">
Expand Down
6 changes: 4 additions & 2 deletions app/blocks/sidebar/sidebar-02/app-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function AppSidebar(props: React.ComponentProps<typeof Sidebar>) {
<Sidebar.Item icon={IconDashboard} href="/blocks/sidebar/sidebar-01">
Overview
</Sidebar.Item>
<Sidebar.Item isCurrent icon={IconSettings} href="#">
<Sidebar.Item isCurrent icon={IconSettings} href="/blocks/sidebar/sidebar-02">
Settings
</Sidebar.Item>
<Sidebar.Item icon={IconCreditCard} href="/blocks/sidebar/sidebar-03">
Expand Down Expand Up @@ -76,7 +76,9 @@ export function AppSidebar(props: React.ComponentProps<typeof Sidebar>) {
<Sidebar.Item icon={IconPersonAdd} href="#">
Add New Member
</Sidebar.Item>
<Sidebar.Item href="#">Manage Roles</Sidebar.Item>
<Sidebar.Item icon={IconCirclePerson} href="#">
Manage Roles
</Sidebar.Item>
</Sidebar.Section>
</Sidebar.Content>
<Sidebar.Footer className="lg:flex lg:flex-row hidden items-center">
Expand Down
8 changes: 5 additions & 3 deletions app/blocks/sidebar/sidebar-03/app-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export function AppSidebar(props: React.ComponentProps<typeof Sidebar>) {
</Sidebar.Header>
<Sidebar.Content>
<Sidebar.Section>
<Sidebar.Item icon={IconDashboard} href="/blocks/sidebar/sidebar-02">
<Sidebar.Item icon={IconDashboard} href="/blocks/sidebar/sidebar-01">
Overview
</Sidebar.Item>
<Sidebar.Item icon={IconSettings} href="/blocks/sidebar/sidebar-02">
Settings
</Sidebar.Item>
<Sidebar.Item isCurrent icon={IconCreditCard} href="#">
<Sidebar.Item isCurrent icon={IconCreditCard} href="/blocks/sidebar/sidebar-03">
Billing
</Sidebar.Item>
<Sidebar.Item icon={IconEnvelope} href="#" badge="49.67K">
Expand Down Expand Up @@ -76,7 +76,9 @@ export function AppSidebar(props: React.ComponentProps<typeof Sidebar>) {
<Sidebar.Item icon={IconPersonAdd} href="#">
Add New Member
</Sidebar.Item>
<Sidebar.Item href="#">Manage Roles</Sidebar.Item>
<Sidebar.Item icon={IconCirclePerson} href="#">
Manage Roles
</Sidebar.Item>
</Sidebar.Section>
</Sidebar.Content>
<Sidebar.Footer className="lg:flex lg:flex-row hidden items-center">
Expand Down
7 changes: 4 additions & 3 deletions components/ui/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ const Item = ({ isCurrent, children, className, icon: Icon, ...props }: ItemProp
<>
{state === "collapsed" ? (
<Tooltip delay={0}>
<Tooltip.Trigger>
<Tooltip.Trigger className="focus:outline-none">
{<Icon data-slot="icon" />}
<span className="sr-only">{children as string}</span>
</Tooltip.Trigger>
Expand Down Expand Up @@ -376,8 +376,9 @@ const footer = tv({
base: "flex flex-col mt-auto [&>section+section]:mt-2.5",
variants: {
collapsed: {
false:
"p-2 [&_[slot=menu-trigger]]:w-full [&_[slot=menu-trigger]]:justify-start [&_[slot=menu-trigger]]:flex [&_[slot=menu-trigger]]:items-center",
false: [
"p-2 [&_[slot=menu-trigger]]:w-full [&_[slot=menu-trigger]]:justify-start [&_[slot=menu-trigger]]:flex [&_[slot=menu-trigger]]:items-center"
],
true: "size-12 p-1 [&_[slot=menu-trigger]]:size-9 justify-center items-center"
}
}
Expand Down

0 comments on commit 092dc6c

Please sign in to comment.