Skip to content

Commit

Permalink
chore: eslint 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KimKyuHoi committed Nov 14, 2024
1 parent 0323074 commit daf57f8
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 21 deletions.
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
<<<<<<< HEAD
"eslint-plugin-jest-dom": "^5.4.0",
=======
>>>>>>> 6844c8b (fix: eslint 수정 밎 정상화)
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-prettier": "^5.2.1",
Expand Down
3 changes: 1 addition & 2 deletions src/components/common/spinner/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { keyframes } from 'styled-components';
import styled from 'styled-components';
import styled, { keyframes } from 'styled-components';

type Props = {
size?: number;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/myPage/components/ProfileEditForm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { memo } from 'react';
import { useForm } from 'react-hook-form';

import styled from 'styled-components';
Expand All @@ -18,7 +18,7 @@ interface ProfileEditFormProps {
refetchMyInfo: () => void;
}

const ProfileEditForm: React.FC<ProfileEditFormProps> = React.memo(
const ProfileEditForm: React.FC<ProfileEditFormProps> = memo(
({ refetchMyInfo }) => {
const form = useForm<ProfileFormValues>({
resolver: zodResolver(ProfileSchema),
Expand Down
2 changes: 1 addition & 1 deletion src/pages/myPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ const RightSection = styled.div`
gap: 20px;
padding: 20px;
margin-top: 20px;
`;
`;
6 changes: 2 additions & 4 deletions src/pages/viewer/apis/comments/fetchComments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ export interface Comment {
content: string;
}


const fetchCommentsPath = (videoId: number) => `/api/videos/${videoId}/comments`;

const fetchCommentsPath = (videoId: number) =>
`/api/videos/${videoId}/comments`;

export const fetchComments = async (videoId: number): Promise<Comment[]> => {
const response = await fetchInstance.get(fetchCommentsPath(videoId));
Expand All @@ -31,4 +30,3 @@ export const useFetchComments = (videoId: number) => {

return { data, isLoading, error, refetch };
};

15 changes: 7 additions & 8 deletions src/pages/viewer/components/ShortsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,19 @@ export interface ShortsCardProps {
comments_count: number;
}

const ShortsCard: React.FC<ShortsCardProps> = ({ video_url, member_info, title }) => {
const ShortsCard: React.FC<ShortsCardProps> = ({
video_url,
member_info,
title,
}) => {
return (
<Styles.CardContainer>
<Styles.VideoContainer>
<Styles.Video controls src={video_url} />
<Styles.InfoContainer>
<Styles.ProfileSection>
<Styles.ProfileImage
src={member_info.image_url}
alt='Profile'
/>
<Styles.ProfileName>
{member_info?.username}
</Styles.ProfileName>
<Styles.ProfileImage src={member_info.image_url} alt='Profile' />
<Styles.ProfileName>{member_info?.username}</Styles.ProfileName>
</Styles.ProfileSection>
<Styles.Title>{title}</Styles.Title>
</Styles.InfoContainer>
Expand Down

0 comments on commit daf57f8

Please sign in to comment.