Skip to content

Commit

Permalink
fix(apps/storybook): navigation, select component (#1819)
Browse files Browse the repository at this point in the history
  • Loading branch information
LufyCZ authored Feb 8, 2025
1 parent 501f31f commit d35378b
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 24 deletions.
1 change: 1 addition & 0 deletions apps/storybook/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build-storybook.log
2 changes: 1 addition & 1 deletion apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/react": "catalog:react",
"@vitejs/plugin-react": "4.1.0",
"autoprefixer": "10.4.14",
"chromatic": "7.4.0",
"chromatic": "11.25.2",
"postcss": "8.4.23",
"serve": "14.2.0",
"storybook": "8.4.7",
Expand Down
18 changes: 16 additions & 2 deletions apps/storybook/stories/navigation.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
// Form.stories.ts|tsx

import type { Meta, StoryObj } from '@storybook/react'
import { Navigation, OnramperProvider } from '@sushiswap/ui'
import {
Navigation,
NavigationElementType,
OnramperProvider,
} from '@sushiswap/ui'

const meta = {
title: 'Components/Navigation',
component: Navigation,
args: {
leftElements: [
{
title: 'Home',
href: '/',
show: 'everywhere',
type: NavigationElementType.Single,
},
],
},
argTypes: {},
parameters: {
docs: {
Expand All @@ -20,7 +34,7 @@ const meta = {
} satisfies Meta<typeof Navigation>

export default meta
type Story = StoryObj<typeof Navigation>
type Story = StoryObj<typeof meta>

export const Default = {
args: {},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const SelectTrigger = React.forwardRef<
const content = props.asChild ? (
children
) : (
<div className="flex gap-2 items-center">
<div className="flex gap-2 items-center justify-between w-full">
{children}
<SelectIcon />
</div>
Expand Down
47 changes: 27 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d35378b

Please sign in to comment.