Skip to content

Commit 0a639b4

Browse files
authored
๐Ÿšจย Fix: ๋ฐฐํฌ ์ „ ๋นŒ๋“œ ๋‹จ๊ณ„์—์„œ ๋ฐœ๊ฒฌํ•œ ์˜ค๋ฅ˜ ์ˆ˜์ •
๐Ÿšจย Fix: ๋ฐฐํฌ ์ „ ๋นŒ๋“œ ๋‹จ๊ณ„์—์„œ ๋ฐœ๊ฒฌํ•œ ์˜ค๋ฅ˜ ์ˆ˜์ •
2 parents 167173f + 302283c commit 0a639b4

File tree

10 files changed

+17
-11
lines changed

10 files changed

+17
-11
lines changed

โ€Žsrc/components/Badge/DotBadge.style.tsโ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import styled from '@emotion/styled';
2+
import { color } from '@styles/colors';
23

34
interface SuperProps {
45
position: 'top' | 'middle' | 'bottom';
5-
color: string;
6+
color: keyof typeof color;
67
badgeSize?: number;
78
}
89

โ€Žsrc/components/Badge/DotBadge.tsxโ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { BadgeContainer, Super } from './DotBadge.style';
2+
import { color } from '@styles/colors';
23

34
interface BadgeProps {
45
children: React.ReactNode;
56
dot: boolean;
6-
color: string;
7+
color: keyof typeof color;
78
position: 'top' | 'middle' | 'bottom';
89
badgeSize?: number;
910
}

โ€Žsrc/components/Button/Button.tsxโ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { StyledButton } from './Buttons.style';
2+
import { color } from '@styles/colors';
23

34
interface ButtonProps {
45
width: number;
@@ -7,7 +8,7 @@ interface ButtonProps {
78
label?: string;
89
handleClick?: () => void;
910
bold?: boolean;
10-
textColor?: string;
11+
textColor?: keyof typeof color;
1112
fontSize?: number;
1213
borderRadius?: number;
1314
children?: React.ReactNode;

โ€Žsrc/components/Button/Buttons.style.tsโ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import styled from '@emotion/styled';
2+
import { color } from '@styles/colors';
23

34
export const StyledButton = styled.button<{
45
width: number;
@@ -7,7 +8,7 @@ export const StyledButton = styled.button<{
78
bold?: boolean;
89
borderRadius?: number;
910
fontSize?: number;
10-
textColor?: string;
11+
textColor?: keyof typeof color;
1112
}>`
1213
cursor: pointer;
1314
width: ${({ width }) => width}px;

โ€Žsrc/components/Link/Link.tsxโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface LinkProps {
99
children: React.ReactNode;
1010
pageLink: string;
1111
size: number;
12-
color: string;
12+
state: State;
1313
color: keyof typeof color;
1414
}
1515

โ€Žsrc/components/ThemePicker/PickerNextButton.tsxโ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Icon } from '@components/Icon';
22
import { StyledNextButton } from './ThemePicker.style';
3+
import { color } from '@styles/colors';
34

45
interface PickerNextButtonProps {
5-
color: string;
6+
color: keyof typeof color;
67
clickNextButton: (move: number) => void;
78
}
89

โ€Žsrc/components/ThemePicker/PickerPreviousButton.tsxโ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Icon } from '@components/Icon';
22
import { StyledPreviousButton } from './ThemePicker.style';
3+
import { color } from '@styles/colors';
34

45
interface PickerPreviousButtonProps {
5-
color: string;
6+
color: keyof typeof color;
67
clickPrevButton: (move: number) => void;
78
}
89

โ€Žsrc/pages/layout/components/SearchResultPost.tsxโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useQuery, useQueries } from '@tanstack/react-query';
22
import { searchAll } from '@apis/search';
33
import { getUser } from '@apis/user';
4-
import { User } from '@/types';
4+
import { EditedPost, User } from '@/types';
55
import { PostPreview } from '@components/PostPreview';
66
import filterPostData from '../utils/filterPostData';
77
import { FILTER } from '../constants';
@@ -55,7 +55,7 @@ const SearchResultPost = ({
5555

5656
return (
5757
<PostPreview
58-
post={post}
58+
post={post as EditedPost}
5959
key={_id}
6060
totalLikes={likes.length}
6161
totalComments={comments.length}

โ€Žsrc/pages/login/components/GoToSignUp.tsxโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const GoToSignUp = () => {
1515
<Icon
1616
name={'arrow_forward'}
1717
size={14}
18-
color={'red'}
18+
color={'redVivid'}
1919
/>
2020
&nbsp;
2121
<Link

โ€Žsrc/utils/index.tsโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import formatTime from './formatTime';
2-
import getMyFollowData from './getMyFollowData';
2+
import getMyFollowData from '@utils/GetMyFollowData';
33
import getTotalMeditationTime from './getTotalMeditationTime';
44

55
export { formatTime, getMyFollowData, getTotalMeditationTime };

0 commit comments

Comments
ย (0)