fix formatting

This commit is contained in:
Scott Merchant 2024-06-09 22:08:20 +09:30 committed by Zoe Roux
parent 0b3f70e48e
commit eafd5f593d
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,7 @@ export const itemMap = (
export const createFilterString = (mediaType: MediaType): string | undefined => {
return mediaType !== MediaTypeAll ? `kind eq ${mediaType.key}` : undefined;
}
};
const query = (
mediaType: MediaType,

View File

@ -31,7 +31,7 @@ import {Layout, type MediaType, MediaTypes, SearchSort, SortOrd} from "../browse
import { InfiniteFetch } from "../fetch-infinite";
import { DefaultLayout } from "../layout";
const { useParam } = createParam<{ sortBy?: string, mediaType?: string }>();
const { useParam } = createParam<{ sortBy?: string; mediaType?: string }>();
const query = (
mediaType: MediaType,
@ -99,4 +99,4 @@ SearchPage.getFetchUrls = ({ q, sortBy, mediaType }) => {
return [
query(mediaTypeObj, q, sortBy?.split("-")[0] as SearchSort, sortBy?.split("-")[1] as SortOrd),
];
}
};