consistent borders and removed some comments

This commit is contained in:
proddy
2025-11-23 16:55:46 +01:00
parent 935a9dcbb7
commit ef315b6dde
7 changed files with 2 additions and 10 deletions

View File

@@ -19,10 +19,8 @@ import { I18nContext } from 'i18n/i18n-react';
import type { Locales } from 'i18n/i18n-types';
import { loadLocaleAsync } from 'i18n/i18n-util.async';
// Extract style to constant to prevent recreation
const flagStyle: CSSProperties = { width: 16, verticalAlign: 'middle' };
// Define language options outside component to prevent recreation
interface LanguageOption {
key: Locales;
flag: string;

View File

@@ -22,7 +22,6 @@ interface ListMenuItemProps {
disabled?: boolean;
}
// Extract styles to prevent recreation
const iconStyles: CSSProperties = {
justifyContent: 'right',
color: 'lightblue',

View File

@@ -3,7 +3,6 @@ import { memo } from 'react';
import { Box, CircularProgress } from '@mui/material';
import type { SxProps, Theme } from '@mui/material';
// Extract styles to prevent recreation on every render
const containerStyles: SxProps<Theme> = {
display: 'flex',
justifyContent: 'center',

View File

@@ -7,7 +7,6 @@ interface LoadingSpinnerProps {
height?: number | string;
}
// Extract styles to prevent recreation on every render
const circularProgressStyles: SxProps<Theme> = (theme: Theme) => ({
margin: theme.spacing(4),
color: theme.palette.text.secondary