Skip to content

Commit

Permalink
refactor : parsePartToKorean 공용 utils 로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rever0 committed Sep 20, 2023
1 parent 5cd1ea6 commit 799d9f4
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 44 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Image from 'next/image';
import { useState } from 'react';
import Flex from '@src/components/common/Flex';
import { parsePartToKorean } from '@src/components/common/parsePartToKorean';
import { Part } from '@src/lib/types/universal';
import { parsePartToKorean } from '@src/lib/utils/parsePartToKorean';
import TabBar from '../../common/TabBar';
import * as St from './style';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { ReactComponent as ArrowLeft } from '@src/assets/icons/arrow_left_28x28.
import { ReactComponent as ArrowRight } from '@src/assets/icons/arrow_right_28x28.svg';
import ArrowRightGrey from '@src/assets/icons/arrow_right_grey.svg';
import { useHorizontalScroll } from '@src/hooks/useHorizontalScroll';
import { parsePartToKorean } from '@src/lib/utils/parsePartToKorean';
import cc from 'classcat';
import styles from './activity-review.module.scss';
import useFetch from './hooks/useFetch';
import { parsePartToKorean } from './utils/parsePartToKorean';

export function ActivityReview() {
const reviews = useFetch();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ReactComponent as ArrowLeft } from '@src/assets/icons/arrow_left_28x28.
import { ReactComponent as ArrowRight } from '@src/assets/icons/arrow_right_28x28.svg';
import arrowRightWhite from '@src/assets/icons/arrow_right_white.svg';
import { useHorizontalScroll } from '@src/hooks/useHorizontalScroll';
import { parsePartToKorean } from '@src/lib/utils/parsePartToKorean';
import { SectionTitle, SectionTitleTranslate, SectionTitleWrapper } from '../common/styles';
import useFetch from './hooks/useFetch';
import {
Expand All @@ -18,7 +19,6 @@ import {
DescWrapper,
MoreLinkWrapper,
} from './styles';
import { parsePartToKorean } from './utils/parsePartToKorean';

export function ActivityReview() {
const reviews = useFetch();
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions src/views/RecruitPage/components/ChapterInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from '@emotion/styled';
import { useState } from 'react';
import Flex from '@src/components/common/Flex';
import { Part } from '@src/lib/types/universal';
import { parsePartToKorean } from '@src/views/MainPage/components/ActivityReview/utils/parsePartToKorean';
import { parsePartToKorean } from '@src/lib/utils/parsePartToKorean';
import TabBar from '../common/Tabs';
import { SectionTitle, SectionTitleTranslate, SectionTitleWrapper } from '../common/styles';
import { infoMap } from './constants';
Expand Down Expand Up @@ -42,7 +42,7 @@ const BaseChip = styled.div`
line-height: 22px;
font-size: 22px;
/* 태블릿 뷰 */
/* 태블릿 뷰 */
@media (max-width: 1299px) and (min-width: 766px) {
padding: 8px 20px;
font-size: 18px;
Expand Down
2 changes: 1 addition & 1 deletion src/views/StudyPage/components/Item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Image from 'next/image';
import { useMemo } from 'react';
import Flex from '@src/components/common/Flex';
import { StudyInfoType } from '@src/lib/types/about';
import { parsePartToKorean } from '@src/lib/utils/parsePartToKorean';
import { formatDate } from '@src/utils/dateFormat';
import { parsePartToKorean } from '@src/views/MainPage/components/ActivityReview/utils/parsePartToKorean';
import * as St from './style';

type StudyItemProps = {
Expand Down

0 comments on commit 799d9f4

Please sign in to comment.