Changed some icons + use langui for search placeholder
This commit is contained in:
parent
fa96469ebf
commit
58bd46f25d
|
@ -37,7 +37,7 @@ export function AppLayout(props: Immutable<Props>): JSX.Element {
|
||||||
title,
|
title,
|
||||||
navTitle,
|
navTitle,
|
||||||
description,
|
description,
|
||||||
subPanelIcon,
|
subPanelIcon = "tune",
|
||||||
} = props;
|
} = props;
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const isMobile = useMediaMobile();
|
const isMobile = useMediaMobile();
|
||||||
|
@ -303,8 +303,6 @@ export function AppLayout(props: Immutable<Props>): JSX.Element {
|
||||||
? appLayout.subPanelOpen
|
? appLayout.subPanelOpen
|
||||||
? "close"
|
? "close"
|
||||||
: subPanelIcon
|
: subPanelIcon
|
||||||
? subPanelIcon
|
|
||||||
: "tune"
|
|
||||||
: ""}
|
: ""}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -145,6 +145,7 @@ query getWebsiteInterface($language_code: String) {
|
||||||
subscribers
|
subscribers
|
||||||
description
|
description
|
||||||
available_at
|
available_at
|
||||||
|
search_title
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,7 @@ export default function Contents(props: Immutable<Props>): JSX.Element {
|
||||||
type="text"
|
type="text"
|
||||||
name="name"
|
name="name"
|
||||||
id="name"
|
id="name"
|
||||||
placeholder="Search title..."
|
placeholder={langui.search_title ?? undefined}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
const input = event.target as HTMLInputElement;
|
const input = event.target as HTMLInputElement;
|
||||||
setSearchName(input.value);
|
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>
|
<p className="flex-shrink-0">{langui.combine_related_contents}:</p>
|
||||||
<Switch
|
<Switch
|
||||||
setState={setCombineRelatedContent}
|
setState={setCombineRelatedContent}
|
||||||
state={combineRelatedContent}
|
state={effectiveCombineRelatedContent}
|
||||||
disabled={searchName.length > 1}
|
disabled={searchName.length > 1}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -202,6 +202,7 @@ export default function Contents(props: Immutable<Props>): JSX.Element {
|
||||||
navTitle={langui.contents}
|
navTitle={langui.contents}
|
||||||
subPanel={subPanel}
|
subPanel={subPanel}
|
||||||
contentPanel={contentPanel}
|
contentPanel={contentPanel}
|
||||||
|
subPanelIcon="search"
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
|
@ -96,7 +96,7 @@ export default function Library(props: Immutable<Props>): JSX.Element {
|
||||||
type="text"
|
type="text"
|
||||||
name="name"
|
name="name"
|
||||||
id="name"
|
id="name"
|
||||||
placeholder="Search title..."
|
placeholder={langui.search_title ?? undefined}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
const input = event.target as HTMLInputElement;
|
const input = event.target as HTMLInputElement;
|
||||||
setSearchName(input.value);
|
setSearchName(input.value);
|
||||||
|
@ -219,6 +219,7 @@ export default function Library(props: Immutable<Props>): JSX.Element {
|
||||||
navTitle={langui.library}
|
navTitle={langui.library}
|
||||||
subPanel={subPanel}
|
subPanel={subPanel}
|
||||||
contentPanel={contentPanel}
|
contentPanel={contentPanel}
|
||||||
|
subPanelIcon="search"
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue