From 543478d85b7cfcf83656dbb099a8a97ae307fcbd Mon Sep 17 00:00:00 2001 From: eunbenn Date: Thu, 18 Jan 2024 19:08:17 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20console=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/LecueNote/api/postLecueNote.ts | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/src/LecueNote/api/postLecueNote.ts b/src/LecueNote/api/postLecueNote.ts index c2b05cec..c7917164 100644 --- a/src/LecueNote/api/postLecueNote.ts +++ b/src/LecueNote/api/postLecueNote.ts @@ -9,24 +9,20 @@ const postLecueNote = ({ isIconClicked, bookId, }: postLecueNoteProps) => { - const response = api - .post( - '/api/notes', - { - bookId: bookId, - content: contents, - textColor: color, - background: isIconClicked ? fileName : bgColor, + const response = api.post( + '/api/notes', + { + bookId: bookId, + content: contents, + textColor: color, + background: isIconClicked ? fileName : bgColor, + }, + { + headers: { + Authorization: `Bearer ${import.meta.env.VITE_APP_TOKEN}`, }, - { - headers: { - Authorization: `Bearer ${import.meta.env.VITE_APP_TOKEN}`, - }, - }, - ) - .then((res) => { - console.log(res); - }); + }, + ); return response; };