Skip to content
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

[Fix/BAR-283] 끄적이는 입력창 스타일 수정 #102

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/Input/WriteInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useMemo, useRef } from 'react';

import Button from '@components/Button';
import Icon from '@components/Icon';
import { MAIN_INPUT_MAX_LENGTH } from '@constants/config';
import { WRITE_INPUT_MAX_LENGTH } from '@constants/config';
import type { UseInputReturn } from '@hooks/useInput';
import { COLORS } from '@styles/tokens';

Expand All @@ -18,8 +18,8 @@ interface WriteInputProps extends HTMLAttributes<HTMLTextAreaElement> {

const WriteInput = ({
inputProps,
placeholder,
maxLength = MAIN_INPUT_MAX_LENGTH,
placeholder = '메모를 끄적여보세요',
maxLength = WRITE_INPUT_MAX_LENGTH,
onSubmit,
}: WriteInputProps) => {
const { id, value, onChange } = inputProps;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Input/WriteInput/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const conatiner = style({
justifyContent: 'space-between',
borderRadius: '16px',
width: '100%',
padding: '22px 12px 22px 24px',
padding: '12px 12px 12px 24px',
border: `2px solid ${COLORS['Blue/Default']}`,
backgroundColor: 'white',
});
Expand Down
4 changes: 2 additions & 2 deletions src/constants/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* "끄적이는" 최대 입력 글자 수
* "끄적이는" 입력창 최대 입력 글자 수
*/
export const MAIN_INPUT_MAX_LENGTH = 500;
export const WRITE_INPUT_MAX_LENGTH = 500;

/**
* 카테고리별 색상
Expand Down
4 changes: 2 additions & 2 deletions src/domain/끄적이는/components/EditInput.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useRef } from 'react';

import { MAIN_INPUT_MAX_LENGTH } from '@constants/config';
import { WRITE_INPUT_MAX_LENGTH } from '@constants/config';
import { type UseInputReturn } from '@hooks/useInput';

import * as styles from './editInput.css';
Expand Down Expand Up @@ -33,7 +33,7 @@ const EditInput = ({ inputProps }: EditInputProps) => {
ref={inputRef}
className={styles.editInput}
autoComplete="off"
maxLength={MAIN_INPUT_MAX_LENGTH}
maxLength={WRITE_INPUT_MAX_LENGTH}
onInput={handleResize}
/>
<p className={styles.editInputTextCount}>
Expand Down
Loading