Skip to content

Commit ff39301

Browse files
committed
feat: use layout in homepage, set default loginstate to true
1 parent 0a4655c commit ff39301

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export const MockFeatureFlagsDecorator: Decorator<Args> = (
133133

134134
const LoginStateDecorator: Decorator<Args> = (story, { parameters }) => {
135135
const [hasLoginStateFlag, setLoginStateFlag] = useState(
136-
Boolean(parameters.loginState),
136+
Boolean(parameters.loginState ?? true),
137137
)
138138

139139
const setHasLoginStateFlag = useCallback(() => {

src/stories/Page/HomePage.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const meta: Meta<typeof HomePage> = {
88
title: 'Pages/Home Page',
99
component: HomePage,
1010
parameters: {
11+
getLayout: HomePage.getLayout,
1112
mockdate: new Date('2023-06-28T07:23:18.349Z'),
1213
msw: {
1314
handlers: [meHandlers.me()],

src/stories/Page/SgidSelectProfilePage.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const meta: Meta<typeof SelectProfilePage> = {
1010
component: SelectProfilePage,
1111
decorators: [],
1212
parameters: {
13+
loginState: false,
1314
chromatic: withChromaticModes(['mobile', 'desktop']),
1415
msw: {
1516
handlers: [authSgidHandlers.listStoredProfiles.returnSingleProfile()],

src/stories/Page/SignInPage.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const meta: Meta<typeof SignInPage> = {
1313
title: 'Pages/Sign In Page',
1414
component: SignInPage,
1515
parameters: {
16+
loginState: false,
1617
msw: {
1718
handlers: [
1819
meHandlers.unauthorized(),

0 commit comments

Comments
 (0)