Changed some icons + use langui for search placeholder

This commit is contained in:
DrMint 2022-05-17 23:54:51 +02:00
parent fa96469ebf
commit 58bd46f25d
4 changed files with 7 additions and 6 deletions

View File

@ -37,7 +37,7 @@ export function AppLayout(props: Immutable<Props>): JSX.Element {
title,
navTitle,
description,
subPanelIcon,
subPanelIcon = "tune",
} = props;
const router = useRouter();
const isMobile = useMediaMobile();
@ -303,8 +303,6 @@ export function AppLayout(props: Immutable<Props>): JSX.Element {
? appLayout.subPanelOpen
? "close"
: subPanelIcon
? subPanelIcon
: "tune"
: ""}
</span>
</div>

View File

@ -145,6 +145,7 @@ query getWebsiteInterface($language_code: String) {
subscribers
description
available_at
search_title
}
}
}

View File

@ -75,7 +75,7 @@ export default function Contents(props: Immutable<Props>): 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<Props>): JSX.Element {
<p className="flex-shrink-0">{langui.combine_related_contents}:</p>
<Switch
setState={setCombineRelatedContent}
state={combineRelatedContent}
state={effectiveCombineRelatedContent}
disabled={searchName.length > 1}
/>
</div>
@ -202,6 +202,7 @@ export default function Contents(props: Immutable<Props>): JSX.Element {
navTitle={langui.contents}
subPanel={subPanel}
contentPanel={contentPanel}
subPanelIcon="search"
{...props}
/>
);

View File

@ -96,7 +96,7 @@ export default function Library(props: Immutable<Props>): 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<Props>): JSX.Element {
navTitle={langui.library}
subPanel={subPanel}
contentPanel={contentPanel}
subPanelIcon="search"
{...props}
/>
);