Used theme values for consistency instead of hardcoded values for padding.
This commit is contained in:
1 parent
1105a38080
commit
055799a135
1 file changed
+3
-1
@@ -18,6 +18,8 @@ import Checkbox from "../Inputs/Checkbox";
|
|||||||
|
|
||||||
// Tab Panel component
|
// Tab Panel component
|
||||||
function TabPanel({ children, value, index, ...other }) {
|
function TabPanel({ children, value, index, ...other }) {
|
||||||
|
const theme = useTheme();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
role="tabpanel"
|
role="tabpanel"
|
||||||
@@ -27,7 +29,7 @@ function TabPanel({ children, value, index, ...other }) {
|
|||||||
{...other}
|
{...other}
|
||||||
>
|
>
|
||||||
{value === index && (
|
{value === index && (
|
||||||
<Box sx={{ pt: 3 }}>
|
<Box sx={{ pt: theme.spacing(3) }}>
|
||||||
{children}
|
{children}
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in new issue
Block a user