-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #974 from 42organization/GGFE-228-에러페이지-이모지-변경
[GGFE-228] 에러페이지 이모지 수정 + 스토리북 추가
- Loading branch information
Showing
5 changed files
with
35 additions
and
4 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { useEffect } from 'react'; | ||
import { useSetRecoilState } from 'recoil'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { errorState } from 'utils/recoil/error'; | ||
import ErrorPage from 'components/error/Error'; | ||
|
||
const meta: Meta = { | ||
title: '/ErrorPage', | ||
component: ErrorPage, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof ErrorPage>; | ||
|
||
function useSetError() { | ||
const setError = useSetRecoilState(errorState); | ||
|
||
useEffect(() => { | ||
setError('HJ00'); | ||
}, []); | ||
} | ||
|
||
const ErrorDefault = () => { | ||
useSetError(); | ||
return <ErrorPage />; | ||
}; | ||
|
||
export const Default: Story = { | ||
render: () => <ErrorDefault />, | ||
}; |