diff --git a/src/components/community/Communityindex.tsx b/src/components/community/Communityindex.tsx index bb90afb..36d5968 100644 --- a/src/components/community/Communityindex.tsx +++ b/src/components/community/Communityindex.tsx @@ -4,7 +4,6 @@ import React from 'react'; import { useCurrentTalkStore } from '@/store/currentTalk.store'; import InterestFilter from './interest/InterestFilter'; import PostsLayout from './shared/PostsLayout'; -import MainContainer from '../shared/MainContainer'; import WritePostButton from './shared/WritePostButton'; import { useModalStore } from '@/store/modal.store'; import CreateModal from './shared/modal/CreateModal'; @@ -22,13 +21,14 @@ const Communityindex = () => { const { open } = useModalStore(); const { currentTalk } = useCurrentTalkStore(); return ( - +
{currentTalk === 'career' ? : } +
{open ? : ''} - +
); }; diff --git a/src/components/community/remote/post.ts b/src/components/community/remote/post.ts index 827fbb9..223db66 100644 --- a/src/components/community/remote/post.ts +++ b/src/components/community/remote/post.ts @@ -95,13 +95,11 @@ export const writePost = async (writePostData: WritePostType) => { } try { - //todo 여기서 안됨///// const { data } = await axios.post(url, formData, { headers: { Authorization: `Bearer ${token}` } }); - ////////////////// return data; } catch (error) { console.error( diff --git a/src/components/community/shared/Loader.tsx b/src/components/community/shared/Loader.tsx index 76e857f..da672a4 100644 --- a/src/components/community/shared/Loader.tsx +++ b/src/components/community/shared/Loader.tsx @@ -1,6 +1,6 @@ export default function Loader({ className = '' }) { return ( -
+
diff --git a/src/components/community/shared/PostsLayout.tsx b/src/components/community/shared/PostsLayout.tsx index 44f9db5..5ba5d64 100644 --- a/src/components/community/shared/PostsLayout.tsx +++ b/src/components/community/shared/PostsLayout.tsx @@ -50,7 +50,7 @@ const PostsLayout = () => { const allPosts = data?.pages?.map(({ content }) => content).flat(); return ( -
+
{allPosts?.map((post: postDataType, i: number) => ( diff --git a/src/components/community/shared/WritePostButton.tsx b/src/components/community/shared/WritePostButton.tsx index a8ac2be..9c7aea4 100644 --- a/src/components/community/shared/WritePostButton.tsx +++ b/src/components/community/shared/WritePostButton.tsx @@ -6,7 +6,7 @@ const WritePostButton = () => { return (
setOpen(true)} - className="fixed bottom-[110px] z-10 + className="fixed bottom-[100px] z-10 right-4 xl:right-1/3 xl:mr-7 cursor-pointer w-12 h-12 rounded-full bg-space-purple flex justify-center items-center"> diff --git a/src/components/community/shared/modal/CreateModal.tsx b/src/components/community/shared/modal/CreateModal.tsx index 9fd940d..73ad6ce 100644 --- a/src/components/community/shared/modal/CreateModal.tsx +++ b/src/components/community/shared/modal/CreateModal.tsx @@ -10,7 +10,7 @@ const CreateModal = () => { useOnClickOutside(ref, () => setOpen(false)); return ( -
+
diff --git a/src/components/footer/Footer.tsx b/src/components/footer/Footer.tsx index b932102..3494e70 100644 --- a/src/components/footer/Footer.tsx +++ b/src/components/footer/Footer.tsx @@ -8,7 +8,7 @@ const Footer = () => { return (