1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-31 13:47:02 +02:00

chore: remove unused values to stop linter complaining (#4078)

This commit is contained in:
Thomas Heartman 2023-06-23 11:32:09 +02:00 committed by GitHub
parent 12c00733d9
commit 97875f3f59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 20 deletions

View File

@ -1,11 +1,7 @@
import { Link, Popover, styled, Typography, useTheme } from '@mui/material'; import { Link, Popover, styled, Typography, useTheme } from '@mui/material';
import { flexRow } from '../../../../../themes/themeStyles'; import { flexRow } from '../../../../../themes/themeStyles';
import React, { useState } from 'react'; import React, { useState } from 'react';
import { import { AdvancedPlaygroundFeatureSchemaEnvironments } from 'openapi';
AdvancedPlaygroundEnvironmentFeatureSchema,
AdvancedPlaygroundFeatureSchemaEnvironments,
} from 'openapi';
import { PlaygroundEnvironmentTable } from '../../PlaygroundEnvironmentTable/PlaygroundEnvironmentTable';
import { PlaygroundEnvironmentDiffTable } from '../../PlaygroundEnvironmentTable/PlaygroundEnvironmentDiffTable'; import { PlaygroundEnvironmentDiffTable } from '../../PlaygroundEnvironmentTable/PlaygroundEnvironmentDiffTable';
const StyledContainer = styled( const StyledContainer = styled(

View File

@ -45,13 +45,6 @@ const { value, setValue } = createLocalStorage(
defaultSort defaultSort
); );
const StyledButton = styled(Link)(({ theme }) => ({
textAlign: 'left',
textDecorationStyle: 'dotted',
textUnderlineOffset: theme.spacing(0.75),
color: theme.palette.neutral.dark,
}));
interface IAdvancedPlaygroundResultsTableProps { interface IAdvancedPlaygroundResultsTableProps {
features?: AdvancedPlaygroundFeatureSchema[]; features?: AdvancedPlaygroundFeatureSchema[];
input?: AdvancedPlaygroundRequestSchema; input?: AdvancedPlaygroundRequestSchema;

View File

@ -97,13 +97,7 @@ export const PlaygroundEnvironmentTable = ({
]; ];
}, []); }, []);
const { const { headerGroups, rows, prepareRow, setHiddenColumns } = useTable(
headerGroups,
rows,
state: { sortBy },
prepareRow,
setHiddenColumns,
} = useTable(
{ {
columns: COLUMNS as any, columns: COLUMNS as any,
data: features, data: features,

View File

@ -11,7 +11,7 @@ import {
import { useTable, useGlobalFilter, useSortBy } from 'react-table'; import { useTable, useGlobalFilter, useSortBy } from 'react-table';
import { CreateSegmentButton } from 'component/segments/CreateSegmentButton/CreateSegmentButton'; import { CreateSegmentButton } from 'component/segments/CreateSegmentButton/CreateSegmentButton';
import { SearchHighlightProvider } from 'component/common/Table/SearchHighlightContext/SearchHighlightContext'; import { SearchHighlightProvider } from 'component/common/Table/SearchHighlightContext/SearchHighlightContext';
import { Box, useMediaQuery } from '@mui/material'; import { useMediaQuery } from '@mui/material';
import { sortTypes } from 'utils/sortTypes'; import { sortTypes } from 'utils/sortTypes';
import { useSegments } from 'hooks/api/getters/useSegments/useSegments'; import { useSegments } from 'hooks/api/getters/useSegments/useSegments';
import { useMemo, useState } from 'react'; import { useMemo, useState } from 'react';