Skip to content

Commit

Permalink
fix: Remove unneeded z-index
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjon3s committed Jan 11, 2024
1 parent fbca56f commit 56625fa
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions editor.planx.uk/src/pages/FlowEditor/components/Settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import { styled } from "@mui/material/styles";
import Tab from "@mui/material/Tab";
import Tabs from "@mui/material/Tabs";
import { HEADER_HEIGHT } from "components/Header";
import React from "react";
import React from "react";
import { Link, useNavigation } from "react-navi";

interface SettingsProps {
currentTab: string,
currentTab: string;
tabs: {
route: string,
name: string,
Component: React.FC,
}[]
route: string;
name: string;
Component: React.FC;
}[];
}

interface TabPanelProps {
Expand Down Expand Up @@ -95,7 +95,6 @@ const Root = styled(Box)(({ theme }) => ({
left: 0,
right: 0,
minHeight: `calc(100% - ${HEADER_HEIGHT}px)`,
zIndex: "2000",
[`& .${classes.tabs}`]: {
backgroundColor: theme.palette.border.main,
},
Expand Down Expand Up @@ -132,14 +131,14 @@ const Settings: React.FC<SettingsProps> = ({ currentTab, tabs }) => {
indicator: classes.tabIndicator,
}}
>
{tabs.map(({ name, route }, index) =>
{tabs.map(({ name, route }, index) => (
<LinkTab
key={`${name}-LinkTab`}
label={name}
href={`./${route}`}
{...a11yProps(index)}
/>
)}
))}
</Tabs>
</Grid>
<Grid item>
Expand All @@ -154,11 +153,11 @@ const Settings: React.FC<SettingsProps> = ({ currentTab, tabs }) => {
</Grid>
</Grid>
</AppBar>
{tabs.map(({ name, Component }, index) =>
{tabs.map(({ name, Component }, index) => (
<TabPanel value={value} index={index} key={`${name}-TabPanel`}>
<Component />
</TabPanel>
)}
))}
</Root>
);
};
Expand Down

0 comments on commit 56625fa

Please sign in to comment.