Skip to content

Commit

Permalink
Sonarcloud is weirdly insistent about naming
Browse files Browse the repository at this point in the history
  • Loading branch information
NatSquared committed Jun 6, 2024
1 parent 777b7ed commit 1d53ef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions met-web/src/components/common/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const useTabletOrLarger = (theme: Theme) => useMediaQuery(theme.breakpoints.up('
export const ResponsiveContainer: React.FC<BoxProps> = (props: BoxProps) => {
const theme = useTheme();

const horizontalPadding = () => {
const useHorizontalPadding = () => {
if (useDesktopOrLarger(theme)) {
return '2em';
} else if (useTabletOrLarger(theme)) {
Expand All @@ -21,7 +21,7 @@ export const ResponsiveContainer: React.FC<BoxProps> = (props: BoxProps) => {
return (
<Box
sx={{
padding: `1.5em ${horizontalPadding()}`,
padding: `1.5em ${useHorizontalPadding()}`,
}}
{...props}
>
Expand Down

0 comments on commit 1d53ef6

Please sign in to comment.