diff --git a/frontend/manage/package.json b/frontend/manage/package.json index c405fb488..973bf1773 100644 --- a/frontend/manage/package.json +++ b/frontend/manage/package.json @@ -1,6 +1,6 @@ { "name": "manage", - "version": "^0.7.0", + "version": "^0.8.0", "description": "관리자 페이지", "main": "index.js", "author": "도비, 곤이", diff --git a/frontend/manage/src/components/pages/ScriptPublishing/index.tsx b/frontend/manage/src/components/pages/ScriptPublishing/index.tsx index 1ed4be36c..6c5c79092 100644 --- a/frontend/manage/src/components/pages/ScriptPublishing/index.tsx +++ b/frontend/manage/src/components/pages/ScriptPublishing/index.tsx @@ -81,7 +81,13 @@ const JsxScriptCode = ({ }: ScriptProps) => ` import Darass from "darass-react"; -; +; `; const ScriptPublishing = () => { @@ -177,7 +183,7 @@ const ScriptPublishing = () => { - 삽입할 페이지가 어둡나요? + 삽입할 페이지가 어둡나요? setIsDarkModePage(state => !state)} diff --git a/frontend/reply-module/package.json b/frontend/reply-module/package.json index 97b670926..dc90e54fa 100644 --- a/frontend/reply-module/package.json +++ b/frontend/reply-module/package.json @@ -1,6 +1,6 @@ { "name": "reply-module", - "version": "^2.4.0", + "version": "^2.5.0", "description": "댓글 모듈", "main": "index.js", "author": "도비, 곤이", diff --git a/frontend/reply-module/src/components/ReplyModuleApp.tsx b/frontend/reply-module/src/components/ReplyModuleApp.tsx index d40ee0eaf..9731d5946 100644 --- a/frontend/reply-module/src/components/ReplyModuleApp.tsx +++ b/frontend/reply-module/src/components/ReplyModuleApp.tsx @@ -12,27 +12,19 @@ import { BrowserRouter, Redirect, Route, Switch } from "react-router-dom"; import { ThemeProvider } from "styled-components"; import { useReplyModuleApp } from "./useReplyModuleApp"; -const getIsDarkModePageParam = () => { +const getReplyModuleParams = () => { const urlParams = new URLSearchParams(window.location.search); - const isDarkModePageString = urlParams.get("darkMode"); - return isDarkModePageString === "true" ? true : false; -}; - -const getPrimaryColor = () => { - const urlParams = new URLSearchParams(window.location.search); + const isDarkModePage = urlParams.get("darkMode") === "true" ? true : false; const primaryColor = decodeURIComponent(urlParams.get("primaryColor") || PALETTE.PRIMARY); - return primaryColor; -}; - -const getUiInfo = () => { - const urlParams = new URLSearchParams(window.location.search); const isShowSortOption = urlParams.get("isShowSortOption") === "true" ? true : false; const isAllowSocialLogin = urlParams.get("isAllowSocialLogin") === "true" ? true : false; const isShowLogo = urlParams.get("isShowLogo") === "true" ? true : false; return { + isDarkModePage, + primaryColor, isShowSortOption, isAllowSocialLogin, isShowLogo @@ -40,9 +32,7 @@ const getUiInfo = () => { }; const App = () => { - const isDarkModePage = getIsDarkModePageParam(); - const primaryColor = getPrimaryColor(); - const { isShowSortOption, isAllowSocialLogin, isShowLogo } = getUiInfo(); + const { isDarkModePage, primaryColor, isShowSortOption, isAllowSocialLogin, isShowLogo } = getReplyModuleParams(); const { user, logout, refetchUser, isLoading, isSuccess, accessToken, refetchAccessToken } = useUser(); diff --git a/frontend/reply-module/src/hooks/api/comment/useGetAllComments.ts b/frontend/reply-module/src/hooks/api/comment/useGetAllComments.ts index 0c2c6275c..6b32a6c87 100644 --- a/frontend/reply-module/src/hooks/api/comment/useGetAllComments.ts +++ b/frontend/reply-module/src/hooks/api/comment/useGetAllComments.ts @@ -6,7 +6,6 @@ import { useQuery } from "simple-react-query"; const compareComments = (prevComments: GetCommentsResponse, currComments: GetCommentsResponse) => { if (!prevComments) return false; - console.log(prevComments, currComments); return prevComments.totalComment === currComments.totalComment; };