Skip to content

Conversation

@saseungmin
Copy link
Collaborator

@saseungmin saseungmin commented Nov 25, 2020

๐ŸŽฏ ์ง„ํ–‰ ์‚ฌํ•ญ

  • ์Šคํ„ฐ๋”” ๋ชจ์ง‘ ๊ธ€ ๋“ฑ๋กํ•˜๊ธฐ
  • ๋“ฑ๋ก ํ›„ ํ•ด๋‹น ๊ธ€ ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•˜๊ธฐ

๐Ÿค” ์ฐธ๊ณ  ์‚ฌํ•ญ

  • ํ˜„์žฌ ์ž„์˜๋กœ ๊ธ€ ์ž‘์„ฑ ์‚ฌ์šฉ์ž๋ฅผ ํ•˜๋“œ์ฝ”๋”ฉ์œผ๋กœ ๋„ฃ์–ด์ฃผ๊ณ  ์žˆ์Œ

studyregister

- Create actions for clearWriteFields
- Create api writeStudyGroup and axios postStudyGroup
- success write test
Comment on lines +3 to +5
import { useDispatch, useSelector } from 'react-redux';

import { useHistory } from 'react-router-dom';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์—ฌ๊ธด ๋ถ™์—ฌ์ฃผ๋Š”๊ฒŒ ๋‚˜์•„๋ณด์ธ๋‹ค.

Comment on lines +19 to +22
const onSubmit = useCallback(() => {
// TODO: write form validate ์ฒดํฌ ํ•˜๊ธฐ
dispatch(writeStudyGroup());
}, [dispatch]);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • writeField๊ฐ€ ๋นˆ์นธ์ด๋ฉด ๋“ฑ๋ก๋ชปํ•˜๊ฒŒ ๋ง‰๋Š” validate๋ฅผ ์ฒดํฌํ•ด์ฃผ๋Š” ๋กœ์ง ๊ตฌํ˜„ํ•ด์ฃผ๊ธฐ

Comment on lines +91 to +92
// NOTE: ํ˜„์žฌ ๋กœ๊ทธ์ธ ๊ธฐ๋Šฅ์ด ์—†๋Š” ๊ด€๊ณ„๋กœ ์ž„์˜๋กœ ์ž‘์„ฑ์ž(moderatorId)๋ฅผ ๋„ฃ์–ด์คŒ
const group = await postStudyGroup({ ...writeField, moderatorId: 'user1' });
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ์ถ”ํ›„ ๋กœ๊ทธ์ธ ๊ธฐ๋Šฅ ๊ตฌํ˜„ ํ›„ ๋ณ€๊ฒจํ•ด์ฃผ๊ธฐ

@saseungmin saseungmin merged commit 13768c6 into CodeSoom:main Nov 25, 2020
@saseungmin saseungmin mentioned this pull request Nov 25, 2020
20 tasks
@saseungmin saseungmin added the enhancement New feature or request label Nov 25, 2020
@saseungmin saseungmin deleted the register-study-recruitment-articles branch July 5, 2021 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant