From 67473702e0fdc2f047eeb6d1ce750929ee94f0f0 Mon Sep 17 00:00:00 2001 From: anhye0n Date: Mon, 11 Nov 2024 00:16:30 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EA=B5=90=EC=88=98=EB=8B=98=20types?= =?UTF-8?q?,=20data=20=EA=B2=BD=EB=A1=9C=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/{utils => features/search}/data/professors.json | 0 src/{utils/types => features/search/models}/Professor.ts | 0 src/features/search/ui/components/SearchInput.tsx | 2 +- src/features/search/ui/components/SearchResults.tsx | 4 ++-- src/pages/Home.tsx | 4 ++-- 5 files changed, 5 insertions(+), 5 deletions(-) rename src/{utils => features/search}/data/professors.json (100%) rename src/{utils/types => features/search/models}/Professor.ts (100%) diff --git a/src/utils/data/professors.json b/src/features/search/data/professors.json similarity index 100% rename from src/utils/data/professors.json rename to src/features/search/data/professors.json diff --git a/src/utils/types/Professor.ts b/src/features/search/models/Professor.ts similarity index 100% rename from src/utils/types/Professor.ts rename to src/features/search/models/Professor.ts diff --git a/src/features/search/ui/components/SearchInput.tsx b/src/features/search/ui/components/SearchInput.tsx index 6040b4d..87eeac3 100644 --- a/src/features/search/ui/components/SearchInput.tsx +++ b/src/features/search/ui/components/SearchInput.tsx @@ -1,9 +1,9 @@ import { useEffect, useState } from 'react'; import styled from 'styled-components'; +import { Professor } from '@semo-client/features/search/models/Professor.ts'; import { SearchResults } from '@semo-client/features/search/ui/components/SearchResults.tsx'; import SearchIcon from '@semo-client/ui/assets/icons/Icon'; import searchPalette from '@semo-client/ui/styles/pallete/searchPalette.ts'; -import { Professor } from '@semo-utils/types/Professor.ts'; interface SearchInputProps { query: string; diff --git a/src/features/search/ui/components/SearchResults.tsx b/src/features/search/ui/components/SearchResults.tsx index d384790..407cbe6 100644 --- a/src/features/search/ui/components/SearchResults.tsx +++ b/src/features/search/ui/components/SearchResults.tsx @@ -1,7 +1,7 @@ import React from 'react'; import styled from 'styled-components'; +import { Professor } from '@semo-client/features/search/models/Professor.ts'; import searchPalette from '@semo-client/ui/styles/pallete/searchPalette.ts'; -import { Professor } from '@semo-utils/types/Professor.ts'; interface SearchResultsProps { value: string; @@ -17,7 +17,7 @@ export const SearchResults: React.FC = ({ {results.map((professor, index) => ( - // TODO: 이미지 추가 필요 + {/*// TODO: 이미지 추가 필요*/} {/**/} diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index e3a9333..08d1b87 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -5,12 +5,12 @@ import { BackgroundImageView } from '@semo-client/features/background-image/ui/c import { Clock } from '@semo-client/features/clock/ui/components/Clock'; import { HeaderView } from '@semo-client/features/header/ui/components/HeaderView'; import { NoticeView } from '@semo-client/features/notice/ui/components/NoticeView'; +import professorsData from '@semo-client/features/search/data/professors.json'; +import { Professor } from '@semo-client/features/search/models/Professor.ts'; import { SearchInput } from '@semo-client/features/search/ui/components/SearchInput'; import { TrendingKeywords } from '@semo-client/features/search/ui/components/TrendingKeywords'; import { LoginButtonView } from '@semo-client/features/users/ui/components/LoginButtonView'; -import professorsData from '@semo-utils/data/professors.json'; import { getInitials } from '@semo-utils/search/hangulUtils'; -import { Professor } from '@semo-utils/types/Professor'; import { Controls } from '@storybook/blocks'; /**