Skip to content

Commit

Permalink
clear warnings (#3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Feb 7, 2023
1 parent 6137846 commit 74e657e
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions 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 = () => {
Expand Down
Expand Up @@ -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';
Expand All @@ -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 {
Expand Down
@@ -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';
Expand All @@ -19,8 +18,6 @@ export const ConfirmToken = ({
token,
type,
}: IConfirmUserLink) => {
const { classes: themeStyles } = useThemeStyles();

return (
<Dialogue
open={open}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/component/admin/auth/OidcAuth/OidcAuth.tsx
Expand Up @@ -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 = {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/component/admin/auth/SamlAuth/SamlAuth.tsx
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion frontend/src/component/admin/cors/CorsForm.tsx
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/component/admin/cors/index.tsx
@@ -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';
Expand Down
Expand Up @@ -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',
Expand Down

0 comments on commit 74e657e

Please sign in to comment.