chore: Use types from the web package
This commit is contained in:
@@ -3,7 +3,7 @@ import Grid from '@mui/material/Grid';
|
||||
import CircularProgress from '@mui/material/CircularProgress';
|
||||
import Divider from '@mui/material/Divider';
|
||||
import { useQuery } from '@apollo/client';
|
||||
import { IApp } from '@automatisch/types';
|
||||
import { IApp } from 'types';
|
||||
|
||||
import PageTitle from 'components/PageTitle';
|
||||
import Container from 'components/Container';
|
||||
|
@@ -6,7 +6,7 @@ import Grid from '@mui/material/Grid';
|
||||
import Divider from '@mui/material/Divider';
|
||||
import CircularProgress from '@mui/material/CircularProgress';
|
||||
import AddIcon from '@mui/icons-material/Add';
|
||||
import type { IApp } from '@automatisch/types';
|
||||
import type { IApp } from 'types';
|
||||
|
||||
import Can from 'components/Can';
|
||||
import NoResultFound from 'components/NoResultFound';
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { useMutation } from '@apollo/client';
|
||||
import { TSamlAuthProvider, TSamlAuthProviderRole } from '@automatisch/types';
|
||||
import { TSamlAuthProvider, TSamlAuthProviderRole } from 'types';
|
||||
import LoadingButton from '@mui/lab/LoadingButton';
|
||||
import Divider from '@mui/material/Divider';
|
||||
import Stack from '@mui/material/Stack';
|
||||
@@ -65,8 +65,8 @@ function RoleMappings({ provider, providerLoading }: RoleMappingsProps) {
|
||||
enqueueSnackbar(formatMessage('roleMappingsForm.successfullySaved'), {
|
||||
variant: 'success',
|
||||
SnackbarProps: {
|
||||
'data-test': 'snackbar-update-role-mappings-success'
|
||||
}
|
||||
'data-test': 'snackbar-update-role-mappings-success',
|
||||
},
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { useFieldArray, useFormContext } from 'react-hook-form';
|
||||
import { IRole } from '@automatisch/types';
|
||||
import { IRole } from 'types';
|
||||
import MuiTextField from '@mui/material/TextField';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import DeleteIcon from '@mui/icons-material/Delete';
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { QueryResult, useMutation } from '@apollo/client';
|
||||
import { IRole, TSamlAuthProvider } from '@automatisch/types';
|
||||
import { IRole, TSamlAuthProvider } from 'types';
|
||||
import LoadingButton from '@mui/lab/LoadingButton';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import MuiTextField from '@mui/material/TextField';
|
||||
@@ -94,8 +94,8 @@ function SamlConfiguration({
|
||||
enqueueSnackbar(formatMessage('authenticationForm.successfullySaved'), {
|
||||
variant: 'success',
|
||||
SnackbarProps: {
|
||||
'data-test': 'snackbar-save-saml-provider-success'
|
||||
}
|
||||
'data-test': 'snackbar-save-saml-provider-success',
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
throw new Error('Failed while saving!');
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { useMutation } from '@apollo/client';
|
||||
import { IRole, IUser } from '@automatisch/types';
|
||||
import { IRole, IUser } from 'types';
|
||||
import LoadingButton from '@mui/lab/LoadingButton';
|
||||
import Grid from '@mui/material/Grid';
|
||||
import Stack from '@mui/material/Stack';
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { useMutation } from '@apollo/client';
|
||||
import { IRole, IUser } from '@automatisch/types';
|
||||
import { IRole, IUser } from 'types';
|
||||
import LoadingButton from '@mui/lab/LoadingButton';
|
||||
import Grid from '@mui/material/Grid';
|
||||
import Skeleton from '@mui/material/Skeleton';
|
||||
|
@@ -5,7 +5,7 @@ import Grid from '@mui/material/Grid';
|
||||
import Box from '@mui/material/Box';
|
||||
import AlertTitle from '@mui/material/AlertTitle';
|
||||
import Alert from '@mui/material/Alert';
|
||||
import type { IExecutionStep } from '@automatisch/types';
|
||||
import type { IExecutionStep } from 'types';
|
||||
|
||||
import useFormatMessage from 'hooks/useFormatMessage';
|
||||
import ExecutionHeader from 'components/ExecutionHeader';
|
||||
|
@@ -7,7 +7,7 @@ import CircularProgress from '@mui/material/CircularProgress';
|
||||
import Divider from '@mui/material/Divider';
|
||||
import Pagination from '@mui/material/Pagination';
|
||||
import PaginationItem from '@mui/material/PaginationItem';
|
||||
import type { IExecution } from '@automatisch/types';
|
||||
import type { IExecution } from 'types';
|
||||
|
||||
import NoResultFound from 'components/NoResultFound';
|
||||
import ExecutionRow from 'components/ExecutionRow';
|
||||
|
@@ -9,7 +9,7 @@ import CircularProgress from '@mui/material/CircularProgress';
|
||||
import Divider from '@mui/material/Divider';
|
||||
import Pagination from '@mui/material/Pagination';
|
||||
import PaginationItem from '@mui/material/PaginationItem';
|
||||
import type { IFlow } from '@automatisch/types';
|
||||
import type { IFlow } from 'types';
|
||||
|
||||
import Can from 'components/Can';
|
||||
import FlowRow from 'components/FlowRow';
|
||||
|
Reference in New Issue
Block a user