From a8d61a393196a03cf5dfe4ee4f567a5e9b514745 Mon Sep 17 00:00:00 2001 From: yoshinorin Date: Wed, 3 Jan 2024 23:40:30 +0900 Subject: [PATCH] update --- src/app/search/page.tsx | 2 -- src/app/settings/page.tsx | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx index 600a7d5..e9cca68 100644 --- a/src/app/search/page.tsx +++ b/src/app/search/page.tsx @@ -20,7 +20,6 @@ async function get(ctx: any) { // TODO: refactor // TODO: assert query params try { - console.log(ctx.searchParams['q']) if (ctx.searchParams['q'] === undefined) { return { props: { @@ -70,7 +69,6 @@ async function get(ctx: any) { } async function execute(ctx, words: Array) { - console.log(words); const response = await search(getRequestContext(), words); if (response.status !== 200) { return emptyResult; diff --git a/src/app/settings/page.tsx b/src/app/settings/page.tsx index 2da19c8..5b8150e 100644 --- a/src/app/settings/page.tsx +++ b/src/app/settings/page.tsx @@ -9,7 +9,8 @@ import DropdownComponent from '../../components/dropdown'; import containerStyles from '../../styles/components/container.module.scss'; import inputStyles from '../../styles/input.module.scss'; -export const Page: React.FunctionComponent<{ }> = ({ }) => { +export default function Page(){ + const theme = getThemeSetting(); const [selectedOption, setSelectedOption] = useState(''); @@ -47,4 +48,4 @@ export const Page: React.FunctionComponent<{ }> = ({ }) => { ) -} +};