Skip to content

Commit

Permalink
[feat] 닉네임, 프로젝트 명 글자 제한 10자로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
HermannChoi committed Apr 18, 2024
1 parent 72dec7e commit 67d2c36
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const BasicUserInfoEditingSpace: React.FC<BasicUserInfoEditingSpace> = ({
onChange={(e) => {
handlePutUserInfo("name", e.target.value);
}}
maxLength={10}
css={editInfoStyles.input}
/>
</section>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/newHomePageComponents/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const NavBar = () => {
>
{isCookiesThere && (
<>
좋은 하루 되세요, <strong>{cookieNickname}</strong>
안녕하세요, <strong>{cookieNickname}</strong>
</>
)}
</p>
Expand Down
5 changes: 4 additions & 1 deletion src/app/components/ptpComponents/sections/ProjectName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ const ProjectName = () => {
<hr />
<input
autoComplete="off"
onFocus={() => setGuideMessage("프로젝트 이름은 무엇인가요?")}
onFocus={() =>
setGuideMessage("프로젝트 이름은 무엇인가요? (최대 10자)")
}
onChange={(e) => setDynamicQuestions("name", e.target.value)}
id="name"
type="text"
value={dynamicQuestionsContainer.name}
css={[inputStyles.style1]}
maxLength={10}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ const SignUpInputs: React.FC<AboutSignUpInputs> = ({
/>
<input
autoComplete="off"
onFocus={() => setGuideMessage(`${textForGuide}을 입력해 주세요.`)}
onFocus={() =>
setGuideMessage(`${textForGuide}을 입력해 주세요.(최대 10자)`)
}
onChange={(e) => handlePutInfo("name", e.target.value)}
type="text"
placeholder={nicknameCompanyPlaceHolder}
maxLength={10}
css={[inputStyles.style1, `height: 50px;`]}
/>
<div css={[flexCenterX2, `position: relative; width: 100%`]}>
Expand Down

0 comments on commit 67d2c36

Please sign in to comment.