Skip to content

Commit

Permalink
fix: 주석 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
byun sumi committed Feb 21, 2024
1 parent caa1cbd commit 2bca4da
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 85 deletions.
57 changes: 1 addition & 56 deletions src/components/Positions/PositionsItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,12 @@ interface PositionsItemProps {
link: string;
}

export function PositionsItem({
type,
title,
}: // link
PositionsItemProps) {
// const { isInProgress } = useIsInProgress();

// const router = useRouter();

// const onClick = () => {
// if (isInProgress) {
// router.push(link);
// }
// };

export function PositionsItem({ type, title }: PositionsItemProps) {
return (
<div css={layoutCss}>
<Image width={112} height={112} src={`${POSITION_BASE}/${type}.png`} alt={title} />
<div>
<h3 css={titleCss}>{title}</h3>
{/* <button onClick={onClick} disabled={!isInProgress} css={linkCss}>
<span>지원하기</span>
<ArrowIcon direction="right" css={theme => arrowIconCss(theme, !isInProgress)} />
</button> */}
</div>
</div>
);
Expand Down Expand Up @@ -86,40 +68,3 @@ const titleCss = (theme: Theme) => css`
font-size: 16px;
}
`;

// const linkCss = (theme: Theme) => css`
// ${theme.typos.pretendard.body1};
// color: ${theme.colors.blue400};
// display: flex;
// align-items: center;
// margin-top: 8px;
// > svg {
// margin-left: 4px;
// }

// &:disabled {
// cursor: not-allowed;
// color: ${theme.colors.gray200};
// }

// ${mediaQuery('mobile')} {
// font-size: 14px;
// }
// `;

// const arrowIconCss = (theme: Theme, disabled: boolean) => css`
// width: 24px;
// height: 24px;

// > path {
// stroke: ${theme.colors.blue400};
// stroke-width: 4;
// }

// ${disabled &&
// css`
// > path {
// stroke: ${theme.colors.gray200};
// }
// `}
// `;
24 changes: 0 additions & 24 deletions src/components/TimerContainer/TimerContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,10 @@ import Image from 'next/image';
import { css, Theme } from '@emotion/react';

import GuideModalButton from '~/components/GuideModalButton';
// import { END_DATE } from '~/constant/common';
// import useIsInProgress from '~/hooks/useIsInProgress';
import { commonLayoutCss } from '~/styles/layout';
import { mediaQuery } from '~/styles/media';

// import useDiffDay from './useDiffDay';

export function TimerContainer() {
// const { isInProgress, progressState } = useIsInProgress();
// const time = useDiffDay(END_DATE);

// const router = useRouter();

// const onButtonClick = () => {
// router.push('/apply');
// };

return (
<section css={containerCss}>
<div css={bgImageCss}>
Expand All @@ -38,10 +25,6 @@ export function TimerContainer() {
<p>완성하며 성장하는 IT 커뮤니티입니다</p>
</div>
</div>
{/* <Timer time={progressState === 'FINISH' ? FINISH_TIME_OBJ : time} />
<Button size="lg" disabled={!isInProgress} onClick={onButtonClick}>
14기 지원하기
</Button> */}

<GuideModalButton />
</div>
Expand All @@ -50,13 +33,6 @@ export function TimerContainer() {
);
}

// const FINISH_TIME_OBJ = {
// day: '00',
// hour: '00',
// min: '00',
// sec: '00',
// };

const containerCss = css`
position: relative;
padding: 30px 0;
Expand Down
5 changes: 0 additions & 5 deletions src/constant/gnb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,4 @@ export const GNB_MENU_NAME: GNBMenu[] = [
href: '/project',
type: 'text',
},
// {
// name: '지원하기',
// href: '/apply',
// type: 'button',
// },
];

0 comments on commit 2bca4da

Please sign in to comment.