change component name for clarity

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-04-10 17:41:54 -04:00
1 parent c3f24a1693
commit 8af4fd8e3e
3 files changed
+9 -9

No files matched your search

+3 -3
View File
@@ -2,7 +2,7 @@ import { Box, useTheme } from "@mui/material";
import { TabList } from "@mui/lab";
import PropTypes from "prop-types";
const TabListWrapper = ({ value, onChange, children, ...props }) => {
const CustomTabList = ({ value, onChange, children, ...props }) => {
const theme = useTheme();
return (
@@ -19,10 +19,10 @@ const TabListWrapper = ({ value, onChange, children, ...props }) => {
);
};
TabListWrapper.propTypes = {
CustomTabList.propTypes = {
value: PropTypes.string,
onChange: PropTypes.func,
children: PropTypes.node,
};
export default TabListWrapper;
export default CustomTabList;
+3 -3
View File
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
import { useNavigate } from "react-router";
import { useSelector } from "react-redux";
import { Box, Tab, useTheme } from "@mui/material";
import TabListWrapper from "../../Components/Tab";
import CustomTabList from "../../Components/Tab";
import TabContext from "@mui/lab/TabContext";
import TabList from "@mui/lab/TabList";
import ProfilePanel from "../../Components/TabPanels/Account/ProfilePanel";
@@ -60,7 +60,7 @@ const Account = ({ open = "profile" }) => {
py={theme.spacing(12)}
>
<TabContext value={tab}>
<TabListWrapper value={tab} onChange={handleTabChange} aria-label="account tabs">
<CustomTabList value={tab} onChange={handleTabChange} aria-label="account tabs">
{tabList.map((label, index) => (
<Tab
label={label}
@@ -71,7 +71,7 @@ const Account = ({ open = "profile" }) => {
tabIndex={index}
/>
))}
</TabListWrapper>
</CustomTabList>
<ProfilePanel />
{user.role.includes("superadmin") && <PasswordPanel />}
{!hideTeams && <TeamPanel />}
@@ -6,7 +6,7 @@ import Content from "./Content";
// Utils
import PropTypes from "prop-types";
import TabListWrapper from "../../../../../Components/Tab";
import CustomTabList from "../../../../../Components/Tab";
const Tabs = ({
isCreate,
@@ -27,7 +27,7 @@ const Tabs = ({
const theme = useTheme();
return (
<TabContext value={TAB_LIST[tab]}>
<TabListWrapper
<CustomTabList
onChange={(_, selected) => {
setTab(TAB_LIST.indexOf(selected));
}}
@@ -40,7 +40,7 @@ const Tabs = ({
value={tabLabel}
/>
))}
</TabListWrapper>
</CustomTabList>
{tab === 0 ? (
<Settings
tabValue={TAB_LIST[0]}