Skip to content

Commit

Permalink
fix: documentation regressions (themesberg#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
rluders authored and maman committed Oct 7, 2023
1 parent 7b0dc27 commit 1cb9ca4
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 10 deletions.
16 changes: 8 additions & 8 deletions app/data/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,14 @@ export const COMPONENTS_DATA: Component[] = [
// link: `/docs/components/skeleton`,
// classes: 'w-40'
// },
// {
// id: '42',
// name: 'KBD (Keyboard)',
// image: '/images/components/keyboard.svg',
// imageDark: '/images/components/keyboard-dark.svg',
// link: `/docs/components/kbd`,
// classes: 'w-40'
// },
{
id: '42',
name: 'KBD (Keyboard)',
image: '/images/components/keyboard.svg',
imageDark: '/images/components/keyboard-dark.svg',
link: `/docs/components/kbd`,
classes: 'w-40',
},
// {
// id: '43',
// name: 'Drawer (offcanvas)',
Expand Down
18 changes: 16 additions & 2 deletions app/docs/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,14 @@ const DocsSidebar: FC<DocsLayoutState> = ({ isCollapsed, setCollapsed }) => {
<SidebarLink href="/docs/components/dropdown">Dropdown</SidebarLink>
<SidebarLink href="/docs/components/footer">Footer</SidebarLink>
<SidebarLink href="/docs/components/forms">Forms</SidebarLink>
<SidebarLink href="/docs/components/kbd">KBD</SidebarLink>
<SidebarLink href="/docs/components/kbd">
<span className="flex items-center gap-2">
KDB{' '}
<Badge color="cyan" className="px-2">
New
</Badge>
</span>
</SidebarLink>
<SidebarLink href="/docs/components/list-group">List group</SidebarLink>
<SidebarLink href="/docs/components/modal">Modal</SidebarLink>
<SidebarLink href="/docs/components/navbar">Navbar</SidebarLink>
Expand Down Expand Up @@ -315,7 +322,14 @@ const DocsSidebar: FC<DocsLayoutState> = ({ isCollapsed, setCollapsed }) => {
</Accordion.Title>
<Accordion.Content className="mb-2 border-none p-0">
<Sidebar.ItemGroup className="border-none">
<SidebarLink href="/docs/forms/floating-label">Floating Label</SidebarLink>
<SidebarLink href="/docs/forms/floating-label">
<span className="flex items-center gap-2">
Floating Label{' '}
<Badge color="cyan" className="px-2">
New
</Badge>
</span>
</SidebarLink>
</Sidebar.ItemGroup>
</Accordion.Content>
</Accordion.Panel>
Expand Down
11 changes: 11 additions & 0 deletions public/images/components/floating-label.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1cb9ca4

Please sign in to comment.