From 0f3ac287604d5d7aea7c56d26026a9b796dabbe9 Mon Sep 17 00:00:00 2001 From: BFlat Date: Tue, 23 Jan 2024 09:21:41 +0700 Subject: [PATCH] select modal rename --- .../SelectSearcher.tsx => SelectModal/SelectModal.tsx} | 8 ++++---- .../pages/video_mocap/components/tabContentLibrary.tsx | 4 ++-- .../pages/weight/inference_panels/SdInferencePanel.tsx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) rename packages/fakeyou.com/src/components/common/{SelectSearcher/SelectSearcher.tsx => SelectModal/SelectModal.tsx} (93%) diff --git a/packages/fakeyou.com/src/components/common/SelectSearcher/SelectSearcher.tsx b/packages/fakeyou.com/src/components/common/SelectModal/SelectModal.tsx similarity index 93% rename from packages/fakeyou.com/src/components/common/SelectSearcher/SelectSearcher.tsx rename to packages/fakeyou.com/src/components/common/SelectModal/SelectModal.tsx index 85386a1a60..4ad4a369f2 100644 --- a/packages/fakeyou.com/src/components/common/SelectSearcher/SelectSearcher.tsx +++ b/packages/fakeyou.com/src/components/common/SelectModal/SelectModal.tsx @@ -13,14 +13,14 @@ interface TabConfig { weightTypeFilter?: string; mediaTypeFilter?: string; // NOT DONE } -interface SelectSearcherProps { +interface SelectModalProps { label?: string; tabs: TabConfig[]; modalTitle?: string; } -const SelectSearcher = memo( - ({ label, tabs, modalTitle = "Select" }: SelectSearcherProps) => { +const SelectModal = memo( + ({ label, tabs, modalTitle = "Select" }: SelectModalProps) => { const [isModalOpen, setIsModalOpen] = useState(false); const { weightTitle, setWeightTitle } = useToken(); @@ -93,4 +93,4 @@ const SelectSearcher = memo( } ); -export default SelectSearcher; +export default SelectModal; diff --git a/packages/fakeyou.com/src/v2/view/pages/video_mocap/components/tabContentLibrary.tsx b/packages/fakeyou.com/src/v2/view/pages/video_mocap/components/tabContentLibrary.tsx index 6983a2262b..2c3c158914 100644 --- a/packages/fakeyou.com/src/v2/view/pages/video_mocap/components/tabContentLibrary.tsx +++ b/packages/fakeyou.com/src/v2/view/pages/video_mocap/components/tabContentLibrary.tsx @@ -1,4 +1,4 @@ -import SelectSearcher from "components/common/SelectSearcher/SelectSearcher"; +import SelectModal from "components/common/SelectModal/SelectModal"; import React from "react"; export default function TabContentLibrary(props: { @@ -7,7 +7,7 @@ export default function TabContentLibrary(props: { }) { return (
- -