From 9311017b5c19e30f1bfddfdeb7f9f215e6ced909 Mon Sep 17 00:00:00 2001 From: DOBOB_LAPTOP Date: Wed, 19 Jul 2023 17:57:24 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20api=20=EB=AA=85=EC=84=B8=EC=99=80=20?= =?UTF-8?q?=EB=A7=9E=EC=A7=80=EC=95=8A=EC=95=98=EB=8D=98=20type=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/models/Article.ts | 2 +- frontend/src/pages/NewArticlePage/index.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/models/Article.ts b/frontend/src/models/Article.ts index dea7df2c6..20be3771f 100644 --- a/frontend/src/models/Article.ts +++ b/frontend/src/models/Article.ts @@ -1,7 +1,7 @@ export interface ArticleRequest { title: string; - link: string; + url: string; } export interface ArticleType { diff --git a/frontend/src/pages/NewArticlePage/index.tsx b/frontend/src/pages/NewArticlePage/index.tsx index 3f81a1a7a..c1765eb52 100644 --- a/frontend/src/pages/NewArticlePage/index.tsx +++ b/frontend/src/pages/NewArticlePage/index.tsx @@ -17,7 +17,7 @@ import { PATH } from '../../constants'; const NewArticlePage = () => { const [articleContent, setArticleContent] = useState({ title: '', - link: '', + url: '', }); const history = useHistory(); @@ -28,8 +28,8 @@ const NewArticlePage = () => { setArticleContent({ ...articleContent, title: e.target.value }); }; - const onArticleLinkChanged = (e: React.ChangeEvent) => { - setArticleContent({ ...articleContent, link: e.target.value }); + const onArticleUrlChanged = (e: React.ChangeEvent) => { + setArticleContent({ ...articleContent, url: e.target.value }); }; const createArticle = () => { @@ -51,9 +51,9 @@ const NewArticlePage = () => {