diff --git a/client/components/header/header.tsx b/client/components/header/header.tsx index 5608906b..b83f69bf 100644 --- a/client/components/header/header.tsx +++ b/client/components/header/header.tsx @@ -129,7 +129,7 @@ const Header = () => { return ( - +
{ const formattedTime = `${createdDate.toLocaleDateString()} ${createdDate.toLocaleTimeString()}` return (
  • - - - - - - {post.title} - - - - - {time} - {post.files.length === 1 ? "1 file" : `${post.files.length} files`} - + + + + + {post.title} + + +
    + + + + + {time} + + + {post.files.length === 1 ? "1 file" : `${post.files.length} files`} + +
    +
    + +
    - {post.files.map((file: any) => { return diff --git a/client/components/post-list/post-list.module.css b/client/components/post-list/post-list.module.css index d883c22a..2c9fdc71 100644 --- a/client/components/post-list/post-list.module.css +++ b/client/components/post-list/post-list.module.css @@ -31,5 +31,4 @@ flex-direction: column-reverse; justify-content: center; margin-bottom: var(--gap-double); - margin-top: var(--gap-double); } diff --git a/client/components/visibility-badge/index.tsx b/client/components/visibility-badge/index.tsx index d907fda3..b640b573 100644 --- a/client/components/visibility-badge/index.tsx +++ b/client/components/visibility-badge/index.tsx @@ -17,7 +17,7 @@ const VisibilityBadge = ({ visibility }: Props) => { } } - return ({visibility}) + return ({visibility}) } export default VisibilityBadge diff --git a/client/pages/mine.tsx b/client/pages/mine.tsx index 363f920a..6d487cba 100644 --- a/client/pages/mine.tsx +++ b/client/pages/mine.tsx @@ -40,7 +40,7 @@ export const getServerSideProps: GetServerSideProps = async ({ req }) => { } }) - if (!posts.ok || posts.status !== 200) { + if (!posts.ok) { return { redirect: { destination: '/',