-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat-fe: 메세지 제출 폼 및 사이드 모달 컴포넌트 구현 (#701)
Co-authored-by: Jeongwoo Park <[email protected]>
- Loading branch information
1 parent
e260eb1
commit 9b13ed6
Showing
27 changed files
with
10,174 additions
and
12,278 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,25 @@ | ||
import { EMAILS } from '../endPoint'; | ||
import APIClient from '../APIClient'; | ||
|
||
const apiClient = new APIClient(EMAILS); | ||
|
||
const emailApis = { | ||
send: async ({ | ||
clubId, | ||
applicantId, | ||
subject, | ||
content, | ||
}: { | ||
clubId: string; | ||
applicantId: number; | ||
subject: string; | ||
content: string; | ||
}) => | ||
apiClient.post({ | ||
path: '/send', | ||
body: { clubId, applicantIds: applicantId, subject, content }, | ||
isFormData: true, | ||
}), | ||
}; | ||
|
||
export default emailApis; |
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
28 changes: 28 additions & 0 deletions
28
...tend/src/components/dashboard/SideFloatingMessageForm/MessageForm/MessageFrom.stories.tsx
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,28 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { FloatingEmailFormProvider } from '@contexts/FloatingEmailFormContext'; | ||
import MessageForm from '.'; | ||
|
||
const meta: Meta<typeof MessageForm> = { | ||
title: 'Organisms/Dashboard/SideFloatingMessageForm/MessageForm', | ||
component: MessageForm, | ||
tags: ['autodocs'], | ||
args: { | ||
recipient: '러기', | ||
onSubmit: (data) => { | ||
alert(`Subject: ${data.subject}, Content: ${data.content}`); | ||
}, | ||
onClose: () => alert('close button clied'), | ||
}, | ||
decorators: [ | ||
(Story) => ( | ||
<FloatingEmailFormProvider> | ||
<Story /> | ||
</FloatingEmailFormProvider> | ||
), | ||
], | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof MessageForm>; | ||
|
||
export const Default: Story = {}; |
Oops, something went wrong.