-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* refactor: 버튼의 스타일을 변경합니다. * refactor: breakWordText 스타일 추가합니다. * feat: ProjectInviteModal 모달을 추가합니다.
- Loading branch information
Showing
15 changed files
with
265 additions
and
35 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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { useState } from 'react'; | ||
import { View } from 'react-native'; | ||
|
||
import SolidButton from '@/components/common/button/SolidButton'; | ||
import ProjectInviteModal from '@/components/project/ProjectInviteModal'; | ||
|
||
const ProjectInviteModalMeta: Meta<typeof ProjectInviteModal> = { | ||
title: 'project/ProjectInviteModal', | ||
component: ProjectInviteModal, | ||
argTypes: {}, | ||
}; | ||
|
||
export default ProjectInviteModalMeta; | ||
|
||
export const Primary: StoryObj<typeof ProjectInviteModal> = { | ||
args: { | ||
project_name: '위프로', | ||
project_profile: 'https://picsum.photos/200', | ||
member_length: 6, | ||
}, | ||
render: (args) => { | ||
const [show, setShow] = useState(false); | ||
|
||
const onRequestClose = () => { | ||
setShow(false); | ||
}; | ||
|
||
return ( | ||
<View style={{ flex: 1 }}> | ||
<SolidButton onPress={() => setShow(true)}>버튼 열기</SolidButton> | ||
<ProjectInviteModal | ||
{...args} | ||
visible={show} | ||
onRequestClose={onRequestClose} | ||
/> | ||
</View> | ||
); | ||
}, | ||
}; |
Oops, something went wrong.