From e6e20d507ed033f092000af36bac3db1c3a6d10f Mon Sep 17 00:00:00 2001 From: Skorpios Date: Fri, 7 Mar 2025 16:56:00 -0800 Subject: [PATCH] Extracted tab panel component into its own separate file. --- .../NotificationIntegrationModal.jsx | 22 +--------------- .../NotificationIntegrationModal/TabPanel.jsx | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 21 deletions(-) create mode 100644 src/Components/NotificationIntegrationModal/TabPanel.jsx diff --git a/src/Components/NotificationIntegrationModal/NotificationIntegrationModal.jsx b/src/Components/NotificationIntegrationModal/NotificationIntegrationModal.jsx index bb7478b34..b34cd5e55 100644 --- a/src/Components/NotificationIntegrationModal/NotificationIntegrationModal.jsx +++ b/src/Components/NotificationIntegrationModal/NotificationIntegrationModal.jsx @@ -12,27 +12,7 @@ import { import { useTheme } from "@emotion/react"; import TextInput from "../Inputs/TextInput"; import Checkbox from "../Inputs/Checkbox"; - -// Tab Panel component -function TabPanel({ children, value, index, ...other }) { - const theme = useTheme(); - - return ( - - ); -} +import TabPanel from "./TabPanel"; const NotificationIntegrationModal = ({ open, diff --git a/src/Components/NotificationIntegrationModal/TabPanel.jsx b/src/Components/NotificationIntegrationModal/TabPanel.jsx new file mode 100644 index 000000000..6299b56e9 --- /dev/null +++ b/src/Components/NotificationIntegrationModal/TabPanel.jsx @@ -0,0 +1,25 @@ +import React from "react"; +import { Box } from "@mui/material"; +import { useTheme } from "@emotion/react"; + +function TabPanel({ children, value, index, ...other }) { + const theme = useTheme(); + + return ( + + ); +} + +export default TabPanel; \ No newline at end of file