From f7d095e7f6e31e42255d3a20a3fdd3c2437373d9 Mon Sep 17 00:00:00 2001 From: JeongBin0227 <45503248+JeongBin0227@users.noreply.github.com> Date: Mon, 22 Feb 2021 01:42:56 +0900 Subject: [PATCH] =?UTF-8?q?[#5]=20refactor=20:=20prettier=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Professor/ProfessorCard/index.tsx | 2 +- src/components/Professor/ProfessorSearch/index.tsx | 2 +- src/components/Professor/ProfessorSelector/index.tsx | 2 +- src/components/Professor/index.tsx | 2 +- src/components/SideMenuBar/index.tsx | 2 +- src/components/Timer/DisplayTime/index.tsx | 2 +- src/components/Timer/index.tsx | 2 +- src/components/TodoContainer/TodoSection/Todo/index.tsx | 2 +- src/components/common/Bookmark/index.tsx | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/Professor/ProfessorCard/index.tsx b/src/components/Professor/ProfessorCard/index.tsx index dad42df..78ef3ba 100644 --- a/src/components/Professor/ProfessorCard/index.tsx +++ b/src/components/Professor/ProfessorCard/index.tsx @@ -1,7 +1,7 @@ import React from 'react' import './style.scss' -export interface ProfessorCardProps { +export type ProfessorCardProps = { id: number position: string school: string diff --git a/src/components/Professor/ProfessorSearch/index.tsx b/src/components/Professor/ProfessorSearch/index.tsx index b6a12de..981abc9 100644 --- a/src/components/Professor/ProfessorSearch/index.tsx +++ b/src/components/Professor/ProfessorSearch/index.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react' import './style.scss' -export interface SearchBarProps { +export type SearchBarProps = { filterSelector: (value: string) => void } diff --git a/src/components/Professor/ProfessorSelector/index.tsx b/src/components/Professor/ProfessorSelector/index.tsx index 87a094b..0998e1d 100644 --- a/src/components/Professor/ProfessorSelector/index.tsx +++ b/src/components/Professor/ProfessorSelector/index.tsx @@ -1,7 +1,7 @@ import React from 'react' import './style.scss' -export interface SelectorBarProps { +export type SelectorBarProps = { selector: string[] filterSelector: (value: string) => void } diff --git a/src/components/Professor/index.tsx b/src/components/Professor/index.tsx index 53bfdc1..a3d95ee 100644 --- a/src/components/Professor/index.tsx +++ b/src/components/Professor/index.tsx @@ -5,7 +5,7 @@ import { SelectorBar } from '@/components/Professor/ProfessorSelector' import { ProfessorCardProps } from '@/components/Professor/ProfessorCard' import './style.scss' -export type ProfessorProps { +export type ProfessorProps = { professorsList: ProfessorCardProps[] } diff --git a/src/components/SideMenuBar/index.tsx b/src/components/SideMenuBar/index.tsx index 87d8717..5cb6f79 100644 --- a/src/components/SideMenuBar/index.tsx +++ b/src/components/SideMenuBar/index.tsx @@ -2,7 +2,7 @@ import React from 'react' import { Bookmark, BookmarkProps } from '@/components/common/Bookmark' import './style.scss' -export interface SideMenuBarProps { +export type SideMenuBarProps = { bookmarkList: BookmarkProps[] } diff --git a/src/components/Timer/DisplayTime/index.tsx b/src/components/Timer/DisplayTime/index.tsx index c56f0b7..8bb5fe8 100644 --- a/src/components/Timer/DisplayTime/index.tsx +++ b/src/components/Timer/DisplayTime/index.tsx @@ -1,7 +1,7 @@ import React, { useEffect, useState } from 'react' import './style.scss' -interface DisplayTimeProps { +type DisplayTimeProps = { currentTime: string nextTime: string unit: string diff --git a/src/components/Timer/index.tsx b/src/components/Timer/index.tsx index 2b707cd..7366891 100644 --- a/src/components/Timer/index.tsx +++ b/src/components/Timer/index.tsx @@ -3,7 +3,7 @@ import React, { useState } from 'react' import { DisplayTime } from './DisplayTime' import './style.scss' -export interface TimerProps { +export type TimerProps = { dateTime: Date } diff --git a/src/components/TodoContainer/TodoSection/Todo/index.tsx b/src/components/TodoContainer/TodoSection/Todo/index.tsx index 6c713dc..4b51f79 100644 --- a/src/components/TodoContainer/TodoSection/Todo/index.tsx +++ b/src/components/TodoContainer/TodoSection/Todo/index.tsx @@ -2,7 +2,7 @@ import React from 'react' import { getFormattedDate } from '@/utils/time' import './style.scss' -export interface TodoProps { +export type TodoProps = { id: number title: string dueDate: Date diff --git a/src/components/common/Bookmark/index.tsx b/src/components/common/Bookmark/index.tsx index 121d9a7..ed5bc2e 100644 --- a/src/components/common/Bookmark/index.tsx +++ b/src/components/common/Bookmark/index.tsx @@ -1,7 +1,7 @@ import React from 'react' import './style.scss' -export interface BookmarkProps { +export type BookmarkProps = { id: number name: string url: string