-
Notifications
You must be signed in to change notification settings - Fork 1
[feat] add forms to mypage #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] add forms to mypage #6
Conversation
devmanta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๐ฅ ์์ฒญ... ๋น ๋ฅด๊ฒ ๋ง์ ๊ฒ์ ํ์
จ๋ค์..
๊ณ ์๋ง์ผ์
จ์ต๋๋ค..! ๋ฑํ ์ฝ๋ฉํธ ํ ๊ฑด ์๊ณ ์ง๋ฌธ๋ง ์ขํ๋ค์..๐
| type="text" | ||
| name="email" | ||
| label="์ด๋ฉ์ผ" | ||
| placeholder="[email protected]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด๋ฉ์ผ ๊ฐ์๋ ๋ฆฌ๋์จ๋ฆฌ๋ก ํญ์ ๊ฐ์ด ์์๊ฒ ๊ฐ์๋ฐ ์๊ฑฐ ์น์ ๊ทผ์ฑ๊ฐ์๊ฑฐ์ ํ์ํ ๋ถ๋ถ์ธ๊ฐ์..?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๊ตฌ์ฌํญ์ ์ด๋ฉ์ผ์ ์์ ๋ถ๊ฐ๋ฅ์ด๋ผ readonly๋ก ๋ฃ์์ต๋๋ค!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๋ฆฌ๋์จ๋ฆฌ๋ง๊ณ placeholder๋งํ๊ฑฐ์์!ใ ใ ์ค๋ ์ฌ๊ธฐ์ ์ด์ฐจํผ ์๋ณด์ผ๊ฒ๊ฐ์๋ฐ ์น์ ๊ทผ์ฑ๋๋งค ๋ฃ์ด์ผํ๊ฑด๊ฐ์ถ์ด์์ ใ ใ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํผ๊ทธ๋ง์์ ์คํ์ผ์ด placeholder๋ ๊ฐ์์ ๋ฃ์ด๋์ต๋๋ค. ใ
ใ
ใ
๋์ค์ post ์์ฒญ๋ณด๋ด๋ ค๋ฉด ์ง์ ์ ์ผ๋ก ๊ฐ์ด ์์ด์ผ ํ๋ ์์ ์ด ํ์ํ๊ฒ ๋ค์
| type="file" | ||
| accept="image/png, image/jpeg" | ||
| name={name} | ||
| id={name} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name๊ฐ์ ํญ์ imgFile ๊ฐ์ธ๊ฐ์..? FileInputProps ์ธํฐํ์ด์ค์ name: 'imgFile'; ์ด๋ ๊ฒ ๋์ด์๊ธธ๋..
ํ๊ณณ์์ ํ๋ฒ๋ง ์ฐ๋ ์ฉ๋๋ผ๋ฉด ๊ด์ฐฎ์๊ฒ๊ฐ์๋ฐ ๊ณตํต์ปดํฌ๋ํธ๋ก ์๊ฐํ๋ฉด id๊ฐ ์ค๋ณต๋ ์ ์๋ ์ํฉ์ด์์๊ฒ๊ฐ์ต๋๋ค!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ฌ์ฌ์ฉ์ฑ์ ๊ณ ๋ คํด์ ์์ ํด๋ณด๊ฒ ์ต๋๋ค.
| import FileInput from './FileInput'; | ||
|
|
||
| export interface FormValues { | ||
| image: File; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๋ ์ด๋ฏธ์ง๊ฐ ์ต์ ๋๊ฐ์ด ์๋๋ฐ ๋ง์ฝ์ ์ด๋ฏธ์ง ์์ผ๋ฉด ์ด๋ป๊ฒ ๋๋๊ฑฐ์์..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํ์
์๋ฌ๊ฐ ๋ฐ์ํ ๊ฒ ๊ฐ๋ค์.
API ์ฐ๋ํ๋ฉด์
image?: File; ๋ image: File | null;๋ก ๋ฐ๊ฟ ๋ณด๊ฒ ์ต๋๋ค.
๐ Related Issue
๐ Description