Skip to content

Commit

Permalink
refactor: 교수님 types, data 경로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
Anhye0n committed Nov 10, 2024
1 parent 8922081 commit 6747370
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/features/search/ui/components/SearchInput.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/features/search/ui/components/SearchResults.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -17,7 +17,7 @@ export const SearchResults: React.FC<SearchResultsProps> = ({
{results.map((professor, index) => (
<ResultItem key={index}>
<Profile>
// TODO: 이미지 추가 필요
{/*// TODO: 이미지 추가 필요*/}
{/*<ProfileImage src={professor.image} alt={professor.name} />*/}
<ProfileImage />
<ProfileInfo>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Check warning on line 14 in src/pages/Home.tsx

View workflow job for this annotation

GitHub Actions / lint 체크

'Controls' is defined but never used

Check warning on line 14 in src/pages/Home.tsx

View workflow job for this annotation

GitHub Actions / lint 체크

'Controls' is defined but never used

/**
Expand Down

0 comments on commit 6747370

Please sign in to comment.