-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/storybook monorepo issues (#438)
* fixing storybook rendering issues * upgrading Storybook to 8.1.3
- Loading branch information
1 parent
175581c
commit 746ba6c
Showing
8 changed files
with
698 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 33 additions & 3 deletions
36
packages/html/src/components/AppBarInternal/AppBarInternal.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,40 @@ | ||
import { AppBarInternalTemplate } from './AppBarInternal' | ||
import AppBarInternalStoryMeta from '@explorer-1/common-storybook/src/story-data/AppBarInternal' | ||
|
||
export default { | ||
...AppBarInternalStoryMeta.meta | ||
title: 'Global Layout/Headers/For Internal Sites/Elements/AppBar', | ||
excludeStories: /.*Data$/, | ||
parameters: { | ||
viewMode: 'docs', | ||
docs: { | ||
description: { | ||
component: | ||
'Displays JPL branding, the org or name of the site, and optionally a sign in/out widget.' | ||
} | ||
} | ||
} | ||
} | ||
|
||
export const Default = AppBarInternalTemplate.bind({}) | ||
Default.storyName = AppBarInternalTemplate.stories.Default.storyName | ||
Default.storyName = 'AppBar' | ||
Default.args = AppBarInternalTemplate.stories.Default.args | ||
|
||
const AppBarInternalStoryMeta = { | ||
stories: { | ||
Default: { | ||
storyName: 'AppBar', | ||
args: { | ||
orgNumber: '18x', | ||
siteTitle: 'DesignLab', | ||
includeSignIn: true, | ||
signedIn: false, | ||
userData: { | ||
firstName: 'First', | ||
lastName: 'Last', | ||
photo: 'https://picsum.photos/150/200' | ||
}, | ||
logInUrl: '#', | ||
logOutUrl: '#' | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.