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'; /**