Skip to content

Commit

Permalink
fix: re-export용 index.ts 파일 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
solar3070 committed Oct 22, 2023
1 parent 7ee3cee commit 10e9171
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/views/BlogPage/components/BlogPost/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BlogPostType } from '@src/lib/types/blog';
import { formatDate } from '@src/lib/utils/dateFormat';
import { DefaultProfileImage } from '@src/views/BlogPage/components/BlogPost';
import DefaultProfileImage from '@src/views/BlogPage/components/BlogPost/DefaultProfileImage';
import * as S from './style';

interface HeaderProps {
Expand Down
3 changes: 0 additions & 3 deletions src/views/BlogPage/components/BlogPost/index.ts

This file was deleted.

8 changes: 3 additions & 5 deletions src/views/BlogPage/components/BlogPost/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useEffect, useRef, useState } from 'react';
import type { BlogPostType } from '@src/lib/types/blog';
import { parsePartToKorean } from '@src/lib/utils/parsePartToKorean';
import { Like } from '@src/views/BlogPage/components/BlogPost';
import * as S from './style';
import Header from '@src/views/BlogPage/components/BlogPost/Header';
import Like from '@src/views/BlogPage/components/BlogPost/Like';
import * as S from './style';

const TWO_LINE_TITLE_HEIGHT = 72;

Expand All @@ -12,7 +12,7 @@ interface BlogPostProps {
blogPost: BlogPostType;
}

function BlogPost({ selectedTap, blogPost }: BlogPostProps) {
export default function BlogPost({ selectedTap, blogPost }: BlogPostProps) {
const titleRef = useRef<HTMLDivElement>(null);
const [descriptionLine, setDescriptionLine] = useState(1);

Expand Down Expand Up @@ -43,5 +43,3 @@ function BlogPost({ selectedTap, blogPost }: BlogPostProps) {
</S.BlogPost>
);
}

export default BlogPost;

0 comments on commit 10e9171

Please sign in to comment.