Skip to content

Commit

Permalink
fix: 기본 내보내기 코드 컨벤션에 맞춰 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
solar3070 committed Oct 22, 2023
1 parent 10e9171 commit ec63b70
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import Image from 'next/image';
import icProfileDefault from '@src/assets/icons/ic_profile_default.svg';
import * as S from './style';

function DefaultProfileImage() {
export default function DefaultProfileImage() {
return (
<S.DefaultProfileImage>
<Image src={icProfileDefault} alt="작성자 프로필 이미지" width={10} height={10} />
</S.DefaultProfileImage>
);
}

export default DefaultProfileImage;
4 changes: 1 addition & 3 deletions src/views/BlogPage/components/BlogPost/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface HeaderProps {
blogPost: BlogPostType;
}

function Header({ selectedTap, blogPost }: HeaderProps) {
export default function Header({ selectedTap, blogPost }: HeaderProps) {
return (
<S.Header>
{selectedTap === 'ARTICLE' ? (
Expand All @@ -35,5 +35,3 @@ function Header({ selectedTap, blogPost }: HeaderProps) {
</S.Header>
);
}

export default Header;
4 changes: 1 addition & 3 deletions src/views/BlogPage/components/BlogPost/Like/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface LikeProps {
blogPost: BlogPostType;
}

function Like({ blogPost }: LikeProps) {
export default function Like({ blogPost }: LikeProps) {
return (
<S.Like>
<Image
Expand All @@ -21,5 +21,3 @@ function Like({ blogPost }: LikeProps) {
</S.Like>
);
}

export default Like;
4 changes: 1 addition & 3 deletions src/views/BlogPage/components/BlogPostList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface BlogPostListProps {
blogPostList: BlogPostListType;
}

function BlogPostList({ selectedTap, blogPostList }: BlogPostListProps) {
export default function BlogPostList({ selectedTap, blogPostList }: BlogPostListProps) {
return (
<S.BlogPostList>
{blogPostList.data.map((blogPost) => (
Expand All @@ -16,5 +16,3 @@ function BlogPostList({ selectedTap, blogPostList }: BlogPostListProps) {
</S.BlogPostList>
);
}

export default BlogPostList;

0 comments on commit ec63b70

Please sign in to comment.