aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src/pages/Series/index.tsx
diff options
context:
space:
mode:
authorLASER-Yi <[email protected]>2022-03-27 14:42:28 +0800
committerLASER-Yi <[email protected]>2022-03-27 14:42:28 +0800
commit658237dd5076a3d4823552ad17c101d3ba6177fc (patch)
tree1449c8378e36f5884cb022dd92132532fa15d3cf /frontend/src/pages/Series/index.tsx
parent87c5d0d9defdc3f01865eeb844dfe191934411fb (diff)
downloadbazarr-658237dd5076a3d4823552ad17c101d3ba6177fc.tar.gz
bazarr-658237dd5076a3d4823552ad17c101d3ba6177fc.zip
Refactor modal system
Diffstat (limited to 'frontend/src/pages/Series/index.tsx')
-rw-r--r--frontend/src/pages/Series/index.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/frontend/src/pages/Series/index.tsx b/frontend/src/pages/Series/index.tsx
index 5f96f1d75..e03807a7f 100644
--- a/frontend/src/pages/Series/index.tsx
+++ b/frontend/src/pages/Series/index.tsx
@@ -1,8 +1,9 @@
import { useSeriesModification, useSeriesPagination } from "@/apis/hooks";
-import { ActionBadge, ItemEditorModal } from "@/components";
+import { ActionBadge } from "@/components";
import LanguageProfile from "@/components/bazarr/LanguageProfile";
+import { ItemEditorModal } from "@/components/modals";
import ItemView from "@/components/views/ItemView";
-import { useModalControl } from "@/modules/redux/hooks/modal";
+import { useModalControl } from "@/modules/modals";
import { BuildKey } from "@/utilities";
import { faWrench } from "@fortawesome/free-solid-svg-icons";
import { FunctionComponent, useMemo } from "react";
@@ -92,7 +93,7 @@ const SeriesView: FunctionComponent = () => {
return (
<ActionBadge
icon={faWrench}
- onClick={() => show("edit", original)}
+ onClick={() => show(ItemEditorModal, original)}
></ActionBadge>
);
},
@@ -107,7 +108,7 @@ const SeriesView: FunctionComponent = () => {
<title>Series - Bazarr</title>
</Helmet>
<ItemView query={query} columns={columns}></ItemView>
- <ItemEditorModal modalKey="edit" mutation={mutation}></ItemEditorModal>
+ <ItemEditorModal mutation={mutation}></ItemEditorModal>
</Container>
);
};