feat: add search filters

This commit is contained in:
Kentai Radiquum 2024-11-21 18:56:54 +05:00
parent e985b65252
commit 4fb996353d
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 81 additions and 24 deletions

View file

@ -88,7 +88,7 @@ export const ReleaseInfoInfo = (props: {
return (
<div key={index} className="inline">
{index > 0 && ", "}
<ReleaseInfoSearchLink title={studio} searchBy={1} />
<ReleaseInfoSearchLink title={studio} searchBy={"studio"} />
</div>
);
})}
@ -98,14 +98,14 @@ export const ReleaseInfoInfo = (props: {
{props.author && (
<>
{"Автор: "}
<ReleaseInfoSearchLink title={props.author} searchBy={3} />
<ReleaseInfoSearchLink title={props.author} searchBy={"author"} />
{props.director && ", "}
</>
)}
{props.director && (
<>
{"Режиссёр: "}
<ReleaseInfoSearchLink title={props.director} searchBy={2} />
<ReleaseInfoSearchLink title={props.director} searchBy={"director"} />
</>
)}
</Table.Cell>
@ -120,7 +120,7 @@ export const ReleaseInfoInfo = (props: {
return (
<div key={index} className="inline">
{index > 0 && ", "}
<ReleaseInfoSearchLink title={genre} searchBy={4} />
<ReleaseInfoSearchLink title={genre} searchBy={"tag"} />
</div>
);
})}