-
Notifications
You must be signed in to change notification settings - Fork 4
[민혁] 과제제출 #8
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
base: main
Are you sure you want to change the base?
[민혁] 과제제출 #8
Conversation
| @@ -0,0 +1,48 @@ | |||
| import React from 'react'; | |||
|
|
|||
| const colorList = ['bg-[#F04D1D]', 'bg-[#FF7364]', 'bg-[#A75EFF]', 'bg-[#1EBDFE]', 'bg-[#0DCF85]']; | |||
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.
전역 파일로 관리하시기로 했잖아요 ~~
| const handleNextBtn = () => { | ||
| if (nickNameError) { | ||
| setModalOpen((prev) => !prev); | ||
| navigate('/myspace', { state: { nickName: nickName } }); | ||
| } else { | ||
| alert('닉네임이 이상해요'); | ||
| } | ||
| }; | ||
| const checkNickName = () => { | ||
| if (nickName.length < 4) { | ||
| setNickNameError(false); | ||
| } else { | ||
| setNickNameError(true); | ||
| } | ||
| }; |
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.
이부분 뭔가 되게 이상하게 읽혀..
닉네임의 길이가 4 이하면 닉네임에러를 false로 세팅하는것도 그렇고
닉네임 에러가 있으면 마이스페이스로 보내는것도 이상해
완전 반대로 해야할거같아
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 SurveyTag from '@components/SurveyTag'; | ||
| import { v4 as uuidv4 } from 'uuid'; | ||
|
|
||
| type form = { id: string; title: string; content: string; tagList: string[] }; |
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.
포매터가 왠지 조금 덜 적용되는거같아
| if (tag.trim() === '') { | ||
| return; | ||
| } |
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.
그냥 리턴해줘 중괄호 빼고 !
kwakseongjae
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.
더 남길거야 기다려
✨배포 링크
언어 및 라이브러리
🛠️ Refactoring
UI
Feature
🔑 Structure
🚀 Future Implementation Plans