mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 08:25:47 +01:00
@@ -17,8 +17,11 @@ import { useCardStyles } from '../../../useCardStyles';
|
||||
export const ToggleEditModeAction = () => {
|
||||
const { enabled, toggleEditMode } = useEditModeStore();
|
||||
const namedWrapperColumnCount = useNamedWrapperColumnCount();
|
||||
const { t } = useTranslation('layout/header/actions/toggle-edit-mode');
|
||||
const translatedSize = t(`screenSizes.${namedWrapperColumnCount}`);
|
||||
const { t } = useTranslation(['layout/header/actions/toggle-edit-mode', 'common']);
|
||||
const translatedSize =
|
||||
namedWrapperColumnCount !== null
|
||||
? t(`common:breakPoints.${namedWrapperColumnCount}`)
|
||||
: t('common:loading');
|
||||
|
||||
const smallerThanSm = useScreenSmallerThan('sm');
|
||||
const { config } = useConfigContext();
|
||||
|
||||
Reference in New Issue
Block a user