💄 Lint + Prettier

This commit is contained in:
ajnart
2023-01-06 01:11:02 +09:00
parent 6fb199105b
commit 2d320ff6e9
12 changed files with 27 additions and 25 deletions

View File

@@ -13,7 +13,7 @@ import {
Badge,
Tooltip,
} from '@mantine/core';
import { IconLock, TablerIcon } from '@tabler/icons';
import { TablerIcon } from '@tabler/icons';
import { useTranslation } from 'next-i18next';
import { useState } from 'react';
import { AppIntegrationPropertyAccessabilityType } from '../../../../../../../../types/app';
@@ -76,7 +76,7 @@ export const GenericSecretInput = ({
withArrow
>
<Badge className={classes.textTransformUnset} color="orange" variant="dot">
{t('integration.type.private')}
{t('integration.type.private')}
</Badge>
</Tooltip>
) : (
@@ -88,7 +88,7 @@ export const GenericSecretInput = ({
withArrow
>
<Badge className={classes.textTransformUnset} color="red" variant="dot">
{t('integration.type.public')}
{t('integration.type.public')}
</Badge>
</Tooltip>
)}

View File

@@ -20,7 +20,8 @@ export const initializeGridstack = (
) => {
if (!wrapperRef.current) return;
// calculates the currently available count of columns
const columnCount = areaType === 'sidebar' ? 1 : isLargerThanSm || typeof isLargerThanSm === 'undefined' ? 12 : 6;
const columnCount =
areaType === 'sidebar' ? 1 : isLargerThanSm || typeof isLargerThanSm === 'undefined' ? 12 : 6;
const minRow = areaType !== 'sidebar' ? 1 : Math.floor(wrapperRef.current.offsetHeight / 64);
// initialize gridstack
const newGrid = gridRef;