mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
clear warnings (#3053)
This commit is contained in:
parent
6137846391
commit
74e657ecdf
@ -1,8 +1,7 @@
|
||||
import { useCallback, useEffect, useContext } from 'react';
|
||||
import { useCallback, useEffect } from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import useProjects from '../hooks/api/getters/useProjects/useProjects';
|
||||
import { useLastViewedProject } from '../hooks/useLastViewedProject';
|
||||
import UIContext from 'contexts/UIContext';
|
||||
import Loader from './common/Loader/Loader';
|
||||
|
||||
export const InitialRedirect = () => {
|
||||
|
@ -20,7 +20,6 @@ import { DateCell } from 'component/common/Table/cells/DateCell/DateCell';
|
||||
import { sortTypes } from 'utils/sortTypes';
|
||||
import { useMemo } from 'react';
|
||||
import theme from 'themes/theme';
|
||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||
import { ProjectsList } from 'component/admin/apiToken/ProjectsList/ProjectsList';
|
||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||
import { HighlightCell } from 'component/common/Table/cells/HighlightCell/HighlightCell';
|
||||
@ -33,7 +32,6 @@ const hiddenColumnsSmall = ['Icon', 'createdAt'];
|
||||
export const ApiTokenTable = () => {
|
||||
const { tokens, loading } = useApiTokens();
|
||||
const initialState = useMemo(() => ({ sortBy: [{ id: 'createdAt' }] }), []);
|
||||
const { uiConfig } = useUiConfig();
|
||||
const isSmallScreen = useMediaQuery(theme.breakpoints.down('md'));
|
||||
|
||||
const {
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { Alert, Typography } from '@mui/material';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { useThemeStyles } from 'themes/themeStyles';
|
||||
import { Dialogue } from 'component/common/Dialogue/Dialogue';
|
||||
import { UserToken } from './UserToken/UserToken';
|
||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||
@ -19,8 +18,6 @@ export const ConfirmToken = ({
|
||||
token,
|
||||
type,
|
||||
}: IConfirmUserLink) => {
|
||||
const { classes: themeStyles } = useThemeStyles();
|
||||
|
||||
return (
|
||||
<Dialogue
|
||||
open={open}
|
||||
|
@ -17,7 +17,6 @@ import useAuthSettings from 'hooks/api/getters/useAuthSettings/useAuthSettings';
|
||||
import useToast from 'hooks/useToast';
|
||||
import { formatUnknownError } from 'utils/formatUnknownError';
|
||||
import { removeEmptyStringFields } from 'utils/removeEmptyStringFields';
|
||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||
import { SsoGroupSettings } from '../SsoGroupSettings';
|
||||
|
||||
const initialState = {
|
||||
|
@ -18,7 +18,6 @@ import useAuthSettingsApi from 'hooks/api/actions/useAuthSettingsApi/useAuthSett
|
||||
import { formatUnknownError } from 'utils/formatUnknownError';
|
||||
import { removeEmptyStringFields } from 'utils/removeEmptyStringFields';
|
||||
import { SsoGroupSettings } from '../SsoGroupSettings';
|
||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||
|
||||
const initialState = {
|
||||
enabled: false,
|
||||
|
@ -6,7 +6,6 @@ import { useUiConfigApi } from 'hooks/api/actions/useUiConfigApi/useUiConfigApi'
|
||||
import useToast from 'hooks/useToast';
|
||||
import { formatUnknownError } from 'utils/formatUnknownError';
|
||||
import { useId } from 'hooks/useId';
|
||||
import { fontSize } from '@mui/system';
|
||||
|
||||
interface ICorsFormProps {
|
||||
frontendApiOrigins: string[] | undefined;
|
||||
|
@ -1,4 +1,3 @@
|
||||
import { useLocation } from 'react-router-dom';
|
||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||
import { AdminAlert } from 'component/common/AdminAlert/AdminAlert';
|
||||
import { ADMIN } from 'component/providers/AccessProvider/permissions';
|
||||
|
@ -5,10 +5,7 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit
|
||||
import { GroupCardAvatars } from './GroupCardAvatars/GroupCardAvatars';
|
||||
import { Badge } from 'component/common/Badge/Badge';
|
||||
import { GroupCardActions } from './GroupCardActions/GroupCardActions';
|
||||
import { RemoveGroup } from 'component/admin/groups/RemoveGroup/RemoveGroup';
|
||||
import { useState } from 'react';
|
||||
import TopicOutlinedIcon from '@mui/icons-material/TopicOutlined';
|
||||
import { EditGroupUsers } from 'component/admin/groups/Group/EditGroupUsers/EditGroupUsers';
|
||||
|
||||
const StyledLink = styled(Link)(({ theme }) => ({
|
||||
textDecoration: 'none',
|
||||
|
Loading…
Reference in New Issue
Block a user