From 74e657ecdf0f52ef7d27c9defb1880f93165d975 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Tue, 7 Feb 2023 08:41:23 +0100 Subject: [PATCH] clear warnings (#3053) --- frontend/src/component/InitialRedirect.tsx | 3 +-- .../component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx | 2 -- .../src/component/admin/apiToken/ConfirmToken/ConfirmToken.tsx | 3 --- frontend/src/component/admin/auth/OidcAuth/OidcAuth.tsx | 1 - frontend/src/component/admin/auth/SamlAuth/SamlAuth.tsx | 1 - frontend/src/component/admin/cors/CorsForm.tsx | 1 - frontend/src/component/admin/cors/index.tsx | 1 - .../component/admin/groups/GroupsList/GroupCard/GroupCard.tsx | 3 --- 8 files changed, 1 insertion(+), 14 deletions(-) diff --git a/frontend/src/component/InitialRedirect.tsx b/frontend/src/component/InitialRedirect.tsx index bad3d15768..cc4c19a5c7 100644 --- a/frontend/src/component/InitialRedirect.tsx +++ b/frontend/src/component/InitialRedirect.tsx @@ -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 = () => { diff --git a/frontend/src/component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx b/frontend/src/component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx index 5fc9d1c9fb..5a149e7886 100644 --- a/frontend/src/component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx +++ b/frontend/src/component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx @@ -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 { diff --git a/frontend/src/component/admin/apiToken/ConfirmToken/ConfirmToken.tsx b/frontend/src/component/admin/apiToken/ConfirmToken/ConfirmToken.tsx index b89f7b1d51..b543876b42 100644 --- a/frontend/src/component/admin/apiToken/ConfirmToken/ConfirmToken.tsx +++ b/frontend/src/component/admin/apiToken/ConfirmToken/ConfirmToken.tsx @@ -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 ( ({ textDecoration: 'none',