Saved filter refactor (#4054)

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
yoshnopa
2023-09-01 02:04:56 +02:00
committed by GitHub
parent fca162f1ca
commit 20520a58b4
70 changed files with 1062 additions and 657 deletions

View File

@@ -44,12 +44,9 @@ interface ITypeProps {
type?:
| "performers"
| "studios"
| "parent_studios"
| "tags"
| "sceneTags"
| "performerTags"
| "parentTags"
| "childTags"
| "scene_tags"
| "performer_tags"
| "movies";
}
interface IFilterProps {
@@ -865,7 +862,7 @@ export const TagSelect: React.FC<
export const FilterSelect: React.FC<IFilterProps & ITypeProps> = (props) => {
if (props.type === "performers") {
return <PerformerSelect {...props} creatable={false} />;
} else if (props.type === "studios" || props.type === "parent_studios") {
} else if (props.type === "studios") {
return <StudioSelect {...props} creatable={false} />;
} else if (props.type === "movies") {
return <MovieSelect {...props} creatable={false} />;