Skip to content

Commit

Permalink
fix: Missing Sidebar type (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris authored and Rocket.Chat committed Jul 30, 2021
1 parent 2c5c6d1 commit 78f202d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions packages/fuselage/src/components/Sidebar/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { ComponentProps, ForwardRefExoticComponent } from 'react';

import { Box } from '../Box';

type SidebarProps = ComponentProps<typeof Box>;
type SidebarTopBarProps = ComponentProps<typeof Box>;
type SidebarItemProps = ComponentProps<typeof Box>;
type SidebarSectionProps = ComponentProps<typeof Box>;

export const Sidebar: ForwardRefExoticComponent<SidebarProps> & {
TopBar: ForwardRefExoticComponent<SidebarTopBarProps>;
Item: ForwardRefExoticComponent<SidebarItemProps>;
Section: ForwardRefExoticComponent<SidebarSectionProps>;
};
2 changes: 1 addition & 1 deletion packages/onboarding-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"@rocket.chat/fuselage": "^0.27.0",
"@rocket.chat/fuselage-hooks": "^0.27.0",
"@rocket.chat/icons": "^0.27.0",
"@rocket.chat/styled": "workspace:packages/styled",
"@rocket.chat/styled": "^0.27.0",
"i18next": "^20.3.2",
"react-hook-form": "^7.10.1",
"react-i18next": "^11.11.0",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5672,7 +5672,7 @@ __metadata:
"@rocket.chat/fuselage-tokens": ^0.27.0
"@rocket.chat/icons": ^0.27.0
"@rocket.chat/prettier-config": ^0.27.0
"@rocket.chat/styled": "workspace:packages/styled"
"@rocket.chat/styled": ^0.27.0
"@storybook/addon-essentials": ^6.3.4
"@storybook/addons": ^6.3.4
"@storybook/react": ^6.3.4
Expand Down Expand Up @@ -5769,7 +5769,7 @@ __metadata:
languageName: unknown
linkType: soft

"@rocket.chat/styled@workspace:packages/styled":
"@rocket.chat/styled@^0.27.0, @rocket.chat/styled@workspace:packages/styled":
version: 0.0.0-use.local
resolution: "@rocket.chat/styled@workspace:packages/styled"
dependencies:
Expand Down

0 comments on commit 78f202d

Please sign in to comment.