diff --git a/src/actions/profile/getUserInfo.ts b/src/actions/profile/getUserInfo.ts index 8096b168..e15b0121 100644 --- a/src/actions/profile/getUserInfo.ts +++ b/src/actions/profile/getUserInfo.ts @@ -19,9 +19,13 @@ export const getMyInfo = async () => { }; export const getUserInfo = async (userid: number) => { + const session = await auth(); + const accessToken = session?.accessToken; + return await fetcher(`${process.env.API_BASE_URL}/${process.env.TEST_TEAM_ID}/users/${userid}`, { method: 'GET', headers: { + Authorization: `Bearer ${accessToken}`, 'Content-Type': 'application/json', }, cache: 'no-store', diff --git a/src/app/(profile)/(component)/ProductList.tsx b/src/app/(profile)/(component)/ProductList.tsx index 8e48a8a8..3d51fa94 100644 --- a/src/app/(profile)/(component)/ProductList.tsx +++ b/src/app/(profile)/(component)/ProductList.tsx @@ -70,7 +70,7 @@ const ProductList = ({ userid, initialData }: Props) => { ); }) ) : ( -
  • +
  • {errOccur ? '잠시 후에 시도해주세요' : '목록이 없습니다'} diff --git a/src/app/_components/ProductPost/ProductModal.tsx b/src/app/_components/ProductPost/ProductModal.tsx index 70b05cb1..9dcc851d 100644 --- a/src/app/_components/ProductPost/ProductModal.tsx +++ b/src/app/_components/ProductPost/ProductModal.tsx @@ -14,7 +14,7 @@ const ProductModal = ({ mode }: { mode: 'create' | 'edit' }) => { const title = mode === 'create' ? '작품 추가' : '작품 수정'; return ( - + {title} diff --git a/src/app/error.tsx b/src/app/error.tsx index 4a2e6a2c..48bff993 100644 --- a/src/app/error.tsx +++ b/src/app/error.tsx @@ -27,7 +27,7 @@ interface Props extends Partial { const ErrorFallback = ({ error, reset, resetErrorBoundary }: Props) => { const router = useRouter(); - const userErrMsg = errMap[error.message] || '에러가 발생했습니다'; + const userErrMsg = errMap[error.message] || '비정상적인 접근입니다'; useEffect(() => { document.body.classList.add('hide-footer'); diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 41d20d92..943b65a6 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -6,6 +6,7 @@ import GlobalNav from '@/components/common/gnb/GlobalNav'; import ModalContainer from '@/components/common/ModalContainer'; import SonnerToast from '@/components/common/SonnerToast'; import FloatingButton from '@/components/ui/FloatingButton'; +import { cn } from '@/lib/utils'; import pretendard from '../lib/utils/fonts/pretendard'; @@ -20,10 +21,10 @@ export const metadata: Metadata = { export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) { return ( - + - {children} +

    {children}
    diff --git a/src/app/products/[productId]/components/ReviewModal.tsx b/src/app/products/[productId]/components/ReviewModal.tsx index 223dcb2a..7324c9cc 100644 --- a/src/app/products/[productId]/components/ReviewModal.tsx +++ b/src/app/products/[productId]/components/ReviewModal.tsx @@ -18,7 +18,7 @@ const ReviewPostModal = ({ review, mode }: { review?: ReviewDetail; mode: 'creat const category = useCurrentProductStore((state) => state.product?.category); return ( - + {title} diff --git a/src/app/products/[productId]/components/ReviewPostForm.tsx b/src/app/products/[productId]/components/ReviewPostForm.tsx index 83b75076..eb8237cb 100644 --- a/src/app/products/[productId]/components/ReviewPostForm.tsx +++ b/src/app/products/[productId]/components/ReviewPostForm.tsx @@ -57,7 +57,7 @@ const ReviewPostForm = ({ productId }: { productId: number }) => { {/*

    diff --git a/src/app/products/[productId]/components/ReviewpatchForm.tsx b/src/app/products/[productId]/components/ReviewpatchForm.tsx index 1df4ded8..e6eea92b 100644 --- a/src/app/products/[productId]/components/ReviewpatchForm.tsx +++ b/src/app/products/[productId]/components/ReviewpatchForm.tsx @@ -63,7 +63,7 @@ const ReviewPatchForm = ({ review }: { review: ReviewDetail }) => {

    diff --git a/src/components/common/FileInput.tsx b/src/components/common/FileInput.tsx index 37baa7b1..ac71967f 100644 --- a/src/components/common/FileInput.tsx +++ b/src/components/common/FileInput.tsx @@ -60,8 +60,7 @@ const FileInput = ({ maxFiles = 1, value, onChange }: FileInputProps) => { 'flex shrink-0 cursor-pointer items-center justify-center', 'border-black-353542 bg-black-252530 border', 'aspect-square w-30 rounded-[8px]', - 'md:w-[135px]', - 'xl:w-40', + 'md:w-40', )} onClick={() => fileInputRef.current?.click()} > diff --git a/src/components/common/Footer/Footer.tsx b/src/components/common/Footer/Footer.tsx index d1bab7d1..2f865728 100644 --- a/src/components/common/Footer/Footer.tsx +++ b/src/components/common/Footer/Footer.tsx @@ -29,9 +29,9 @@ const Footer = () => { {/* shadow-[0_-1px_2px_0_rgba(0,0,0,1)] */} {/* gnb 그림자 -> 아래쪽에만 생김 shadow-sm shadow-black*/} -