From 58bd46f25dec136991e1fb62913b13093e946fc9 Mon Sep 17 00:00:00 2001 From: DrMint Date: Tue, 17 May 2022 23:54:51 +0200 Subject: [PATCH] Changed some icons + use langui for search placeholder --- src/components/AppLayout.tsx | 4 +--- src/graphql/operations/getWebsiteInterface.graphql | 1 + src/pages/contents/index.tsx | 5 +++-- src/pages/library/index.tsx | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/AppLayout.tsx b/src/components/AppLayout.tsx index b5e208b..114c086 100644 --- a/src/components/AppLayout.tsx +++ b/src/components/AppLayout.tsx @@ -37,7 +37,7 @@ export function AppLayout(props: Immutable): JSX.Element { title, navTitle, description, - subPanelIcon, + subPanelIcon = "tune", } = props; const router = useRouter(); const isMobile = useMediaMobile(); @@ -303,8 +303,6 @@ export function AppLayout(props: Immutable): JSX.Element { ? appLayout.subPanelOpen ? "close" : subPanelIcon - ? subPanelIcon - : "tune" : ""} diff --git a/src/graphql/operations/getWebsiteInterface.graphql b/src/graphql/operations/getWebsiteInterface.graphql index 8051f7d..f9827b1 100644 --- a/src/graphql/operations/getWebsiteInterface.graphql +++ b/src/graphql/operations/getWebsiteInterface.graphql @@ -145,6 +145,7 @@ query getWebsiteInterface($language_code: String) { subscribers description available_at + search_title } } } diff --git a/src/pages/contents/index.tsx b/src/pages/contents/index.tsx index 180ebce..070a576 100644 --- a/src/pages/contents/index.tsx +++ b/src/pages/contents/index.tsx @@ -75,7 +75,7 @@ export default function Contents(props: Immutable): JSX.Element { type="text" name="name" id="name" - placeholder="Search title..." + placeholder={langui.search_title ?? undefined} onChange={(event) => { const input = event.target as HTMLInputElement; setSearchName(input.value); @@ -103,7 +103,7 @@ export default function Contents(props: Immutable): JSX.Element {

{langui.combine_related_contents}:

1} /> @@ -202,6 +202,7 @@ export default function Contents(props: Immutable): JSX.Element { navTitle={langui.contents} subPanel={subPanel} contentPanel={contentPanel} + subPanelIcon="search" {...props} /> ); diff --git a/src/pages/library/index.tsx b/src/pages/library/index.tsx index ca74aa6..a94f5cf 100644 --- a/src/pages/library/index.tsx +++ b/src/pages/library/index.tsx @@ -96,7 +96,7 @@ export default function Library(props: Immutable): JSX.Element { type="text" name="name" id="name" - placeholder="Search title..." + placeholder={langui.search_title ?? undefined} onChange={(event) => { const input = event.target as HTMLInputElement; setSearchName(input.value); @@ -219,6 +219,7 @@ export default function Library(props: Immutable): JSX.Element { navTitle={langui.library} subPanel={subPanel} contentPanel={contentPanel} + subPanelIcon="search" {...props} /> );