mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-18 05:09:23 +00:00
homework 2 done
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
|
||||
import { PersonalInformation } from './'
|
||||
|
||||
const meta = {
|
||||
title: 'Profile/Personal information',
|
||||
component: PersonalInformation,
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof PersonalInformation>
|
||||
|
||||
export default meta
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
email: 'your_email@domain.com',
|
||||
avatar: 'https://picsum.photos/200',
|
||||
name: 'John Doe',
|
||||
onAvatarChange: () => {
|
||||
console.info('avatar changed')
|
||||
},
|
||||
onNameChange: () => {
|
||||
console.info('name changed')
|
||||
},
|
||||
onLogout: () => {
|
||||
console.info('logout')
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user