mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 16:34:26 +00:00
Run npm lint:fix
This commit is contained in:
@@ -16,11 +16,12 @@ import SecuritySettings from './SecuritySettings';
|
||||
import ProfileSettings from './ProfileSettings';
|
||||
import DangerZoneSettings from './DangerZoneSettings';
|
||||
import AccordionControl from '../AccordionControl';
|
||||
import {
|
||||
SettingsActionType,
|
||||
import type {
|
||||
UserProfileSettings,
|
||||
ProfileSettingsState,
|
||||
SettingsAction,
|
||||
SettingsAction} from '../../../types/settings';
|
||||
import {
|
||||
SettingsActionType
|
||||
} from '../../../types/settings';
|
||||
|
||||
interface AccountSettingsProps {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { Box, Stack, TextInput } from '@mantine/core';
|
||||
import { UserProfileSettings } from '../../../types/settings';
|
||||
import type { UserProfileSettings } from '../../../types/settings';
|
||||
|
||||
interface ProfileSettingsProps {
|
||||
settings: UserProfileSettings;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Box, PasswordInput, Stack, Text } from '@mantine/core';
|
||||
import { UserProfileSettings } from '@/types/settings';
|
||||
import type { UserProfileSettings } from '@/types/settings';
|
||||
|
||||
interface SecuritySettingsProps {
|
||||
settings: UserProfileSettings;
|
||||
|
||||
@@ -20,8 +20,8 @@ import { useUserAdmin } from '../../../hooks/useUserAdmin';
|
||||
import CreateUserModal from '../../modals/user/CreateUserModal';
|
||||
import EditUserModal from '../../modals/user/EditUserModal';
|
||||
import DeleteUserModal from '../../modals/user/DeleteUserModal';
|
||||
import { User } from '../../../types/authApi';
|
||||
import { CreateUserRequest, UpdateUserRequest } from '../../../types/adminApi';
|
||||
import type { User } from '../../../types/authApi';
|
||||
import type { CreateUserRequest, UpdateUserRequest } from '../../../types/adminApi';
|
||||
|
||||
interface AdminUsersTabProps {
|
||||
currentUser: User;
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Table, Group, Text, Box, LoadingOverlay, Alert } from '@mantine/core';
|
||||
import { IconAlertCircle } from '@tabler/icons-react';
|
||||
import { useAdminData } from '../../../hooks/useAdminData';
|
||||
import { formatBytes } from '../../../utils/formatBytes';
|
||||
import { FileCountStats, WorkspaceStats } from '../../../types/adminApi';
|
||||
import type { FileCountStats, WorkspaceStats } from '../../../types/adminApi';
|
||||
|
||||
const AdminWorkspacesTab: React.FC = () => {
|
||||
const {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { Box, TextInput, Text, Grid } from '@mantine/core';
|
||||
import { Workspace } from '@/types/workspace';
|
||||
import type { Workspace } from '@/types/workspace';
|
||||
|
||||
interface GeneralSettingsProps {
|
||||
name: string;
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
Group,
|
||||
Grid,
|
||||
} from '@mantine/core';
|
||||
import { Workspace } from '@/types/workspace';
|
||||
import type { Workspace } from '@/types/workspace';
|
||||
|
||||
interface GitSettingsProps {
|
||||
gitEnabled: boolean;
|
||||
|
||||
@@ -17,8 +17,9 @@ import GeneralSettings from './GeneralSettings';
|
||||
import { useModalContext } from '../../../contexts/ModalContext';
|
||||
import DangerZoneSettings from './DangerZoneSettings';
|
||||
import AccordionControl from '../AccordionControl';
|
||||
import { SettingsActionType, SettingsAction } from '../../../types/settings';
|
||||
import { Workspace } from '../../../types/workspace';
|
||||
import type { SettingsAction } from '../../../types/settings';
|
||||
import { SettingsActionType } from '../../../types/settings';
|
||||
import type { Workspace } from '../../../types/workspace';
|
||||
|
||||
// State and reducer for workspace settings
|
||||
interface WorkspaceSettingsState {
|
||||
|
||||
Reference in New Issue
Block a user