All files / src/features/GiveOnboarding/container StepViewContainer.tsx

100% Statements 3/3
60% Branches 3/5
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19      11x 25x   25x                        
import { Grid } from "@mui/material";
import { useCustomThemeV2 } from "@theme/hooks/useCustomThemeV2";
 
export const StepViewContainer = ({ children, gap = "24px" }: any) => {
  const { isMobileView } = useCustomThemeV2();
 
  return (
    <Grid
      container
      gap={gap}
      padding={isMobileView ? "20px" : "40px"}
      paddingTop={isMobileView ? 0 : "40px"}
      justifyContent="center"
    >
      {children}
    </Grid>
  );
};