Skip to content

Commit

Permalink
[Deploy] 자잘 수정 사항들 배포
Browse files Browse the repository at this point in the history
  • Loading branch information
eonseok-jeon authored Aug 2, 2024
2 parents 2057fb4 + 02c0240 commit 5d9bde2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ interface MenuItemProps {
path?: string;
target?: '_blank' | '_self';
amplitudeId?: string;
className?: string;
onClick?: () => void;
}

const MenuItem = ({ text, path, target, amplitudeId, onClick }: MenuItemProps) => {
const MenuItem = ({ text, path, target, amplitudeId, className, onClick }: MenuItemProps) => {
return (
<li className={menuItem}>
<li className={`${className} ${menuItem}`}>
{path ? (
<NavLink
to={path}
Expand Down
2 changes: 1 addition & 1 deletion src/common/components/Layout/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Header = () => {
<MenuItem key={text} text={text} path={path} target={target} amplitudeId={amplitudeId} />
))}
<MenuItem key="로그아웃" text="로그아웃" onClick={handleLogout} />
<MenuItem key="로그인완료" text={`${name}님`} />
<MenuItem key="로그인완료" text={`${name}님`} className="amp-block" />
</>
)}
</ul>
Expand Down
4 changes: 2 additions & 2 deletions src/views/ApplyPage/components/FileInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface FileInputProps {
}

const LIMIT_SIZE = 1024 ** 2 * 50; // 50MB
const ACCEPTED_FORMATS = '.pdf, .pptx';
const ACCEPTED_FORMATS = '.pdf';

const FileInput = ({ section, id, isReview, disabled, defaultFile }: FileInputProps) => {
const [isError, setIsError] = useState(false);
Expand Down Expand Up @@ -135,7 +135,7 @@ const FileInput = ({ section, id, isReview, disabled, defaultFile }: FileInputPr
{(uploadPercent !== -1 || !defaultFileName) && (
<span className={fileNameVar[fileName === '' ? 'default' : 'selected']}>
{uploadPercent < 0 && fileName === ''
? '50mb 이하 | pdf, pptx'
? '50mb 이하 | pdf'
: uploadPercent < 100
? `업로드 중... ${uploadPercent}/100% 완료`
: uploadPercent === 100 && fileName === ''
Expand Down
2 changes: 0 additions & 2 deletions src/views/ApplyPage/components/FileInput/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { theme } from 'styles/theme.css';
export const container = style({
position: 'relative',
width: 720,
height: 53,
maxHeight: 53,
});

export const fileInput = style({
Expand Down
4 changes: 2 additions & 2 deletions src/views/ApplyPage/components/Info/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const Info = ({ value }: { value: string }) => {
return (
<article>
<ol className={container}>
{value?.split('\n').map((text) => (
<li className={info} key={text}>
{value?.split('\n').map((text, idx) => (
<li className={info} key={`${idx},${text}`}>
{text}
</li>
))}
Expand Down

0 comments on commit 5d9bde2

Please sign in to comment.