Skip to content

Commit

Permalink
Update app/ui/user/sign-in-form/sign-in-form.stories.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: 박가현 <[email protected]>
  • Loading branch information
seonghunYang and gahyuun authored Mar 31, 2024
1 parent 8a8dcd1 commit 4c8bf01
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions app/ui/user/sign-in-form/sign-in-form.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,24 @@ import { resetMockDB, mockDatabase } from '@/app/mocks/db.mock';
const meta = {
title: 'ui/user/SignInForm',
component: SignInForm,
decorators: [
(Story) => (
<div className="w-96">
<Story />
</div>
),
decorators: [
(Story) => {
const beforeEach = () => {
resetMockDB();
mockDatabase.createUser({
authId: 'testtest',
password: 'test1234!',
studentNumber: '60000001',
engLv: 'ENG12',
});
};
beforeEach();
return (
<div className="w-96">
<Story />
</div>
);
},
],
args: {
onNext: fn(),
Expand Down

0 comments on commit 4c8bf01

Please sign in to comment.