Skip to content

Commit

Permalink
feat: change example hobby list
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Dec 19, 2024
1 parent 1b1c264 commit 0d8b706
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 22 deletions.
22 changes: 13 additions & 9 deletions src/entities/hobby/constants/hobbies.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import { Hobby } from 'src/entities/hobby/types/hobby';

export const ExampleHobbyList: Hobby[] = [
{ name: '🧗 클라이밍' },
{ name: '🥐 맛집탐방' },
{ name: '🎬 영화보기' },
{ name: '👟 운동' },
{ name: '🧶 뜨개질' },
{ name: '🧑‍💻 개발공부' },
{ name: '🎵 음악 감상' },
{ name: '🎮 게임' },
{ name: '🥐 맛집 탐방' },
{ name: '📖 독서' },
{ name: '🍷 와인' },
{ name: '🏊 수영' },
{ name: '🏌️ 골프' },
{ name: '🍳 요리' },
{ name: '🏋️‍♀️ 운동' },
{ name: '🎨 미술' },
{ name: '🎬 영화/드라마 감상' },
{ name: '🎹 악기연주' },
{ name: '🧶 뜨개질' },
{ name: '🍷 주류 탐방' },
{ name: '✈️ 여행' },
{ name: '🎤 노래 부르기' },
{ name: '📷 사진 촬영' },
{ name: '🧩 보드게임' },
];
15 changes: 2 additions & 13 deletions src/shared/ui/ChipList/ChipList.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Meta, StoryObj } from '@storybook/react';
import { ChipList } from 'src/shared/ui/ChipList/ChipList';
import { ExampleHobbyList } from 'src/entities/hobby/constants/hobbies';

const meta: Meta<typeof ChipList> = {
component: ChipList,
Expand All @@ -10,19 +11,7 @@ type Story = StoryObj<typeof ChipList>;

export const Default: Story = {
args: {
defaultList: [
{ name: '🧗 클라이밍' },
{ name: '🥐 맛집탐방' },
{ name: '🎬 영화보기' },
{ name: '👟 운동' },
{ name: '🧶 뜨개질' },
{ name: '🧑‍💻 개발공부' },
{ name: '📖 독서' },
{ name: '🍷 와인' },
{ name: '🏊 수영' },
{ name: '🏌️ 골프' },
{ name: '🎹 악기연주' },
],
defaultList: ExampleHobbyList,
selectedList: [],
setSelectedList: console.log,
},
Expand Down

0 comments on commit 0d8b706

Please sign in to comment.