diff --git a/frontend/src/component/archive/ArchiveListContainer.tsx b/frontend/src/component/archive/ArchiveListContainer.tsx
deleted file mode 100644
index fa0dd84c9b..0000000000
--- a/frontend/src/component/archive/ArchiveListContainer.tsx
+++ /dev/null
@@ -1,50 +0,0 @@
-import { useFeaturesArchive } from 'hooks/api/getters/useFeaturesArchive/useFeaturesArchive';
-import { FeatureToggleList } from '../feature/FeatureToggleList/FeatureToggleArchiveList';
-import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
-import { useFeaturesFilter } from 'hooks/useFeaturesFilter';
-import { useFeatureArchiveApi } from 'hooks/api/actions/useFeatureArchiveApi/useReviveFeatureApi';
-import useToast from 'hooks/useToast';
-import { useFeaturesSort } from 'hooks/useFeaturesSort';
-
-export const ArchiveListContainer = () => {
- const { setToastData, setToastApiError } = useToast();
- const { uiConfig } = useUiConfig();
- const { reviveFeature } = useFeatureArchiveApi();
-
- const {
- archivedFeatures = [],
- refetchArchived,
- loading,
- } = useFeaturesArchive();
-
- const { filtered, filter, setFilter } = useFeaturesFilter(archivedFeatures);
- const { sorted, sort, setSort } = useFeaturesSort(filtered);
-
- const onRevive = (feature: string) => {
- reviveFeature(feature)
- .then(refetchArchived)
- .then(() =>
- setToastData({
- type: 'success',
- title: "And we're back!",
- text: 'The feature toggle has been revived.',
- confetti: true,
- })
- )
- .catch(e => setToastApiError(e.toString()));
- };
-
- return (
-
- );
-};
diff --git a/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx b/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx
index 0c5a256444..9c5e60ce93 100644
--- a/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx
+++ b/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx
@@ -165,8 +165,6 @@ export const ArchiveTable = ({
getSearchContext,
} = useSearch(columns, searchValue, archivedFeatures);
- debugger;
-
const data = useMemo(
() => (loading ? featuresPlaceholder : searchedData),
[searchedData, loading]
@@ -238,7 +236,7 @@ export const ArchiveTable = ({
const renderRows = () => {
return (
<>
- {rows.map((row) => {
+ {rows.map(row => {
prepareRow(row);
return (
@@ -263,7 +261,6 @@ export const ArchiveTable = ({
);
};
-
return (
= ({
- projectId,
-}) => {
- const { setToastData, setToastApiError } = useToast();
- const { uiConfig } = useUiConfig();
- const { reviveFeature } = useFeatureArchiveApi();
-
- const {
- archivedFeatures = [],
- refetchArchived,
- loading,
- } = useProjectFeaturesArchive(projectId);
-
- const { filtered, filter, setFilter } = useFeaturesFilter(archivedFeatures);
- const { sorted, sort, setSort } = useFeaturesSort(filtered);
-
- const onRevive = (feature: string) => {
- reviveFeature(feature)
- .then(refetchArchived)
- .then(() =>
- setToastData({
- type: 'success',
- title: "And we're back!",
- text: 'The feature toggle has been revived.',
- confetti: true,
- })
- )
- .catch(e => setToastApiError(e.toString()));
- };
-
- return (
-
- );
-};
diff --git a/frontend/src/component/common/Table/cells/FeatureArchivedCell/FeatureArchivedCell.tsx b/frontend/src/component/common/Table/cells/FeatureArchivedCell/FeatureArchivedCell.tsx
index 66c6038f2d..1765daa5e2 100644
--- a/frontend/src/component/common/Table/cells/FeatureArchivedCell/FeatureArchivedCell.tsx
+++ b/frontend/src/component/common/Table/cells/FeatureArchivedCell/FeatureArchivedCell.tsx
@@ -1,9 +1,9 @@
-import React, {VFC} from 'react';
+import React, { VFC } from 'react';
import TimeAgo from 'react-timeago';
-import {Tooltip, Typography} from '@mui/material';
-import {formatDateYMD} from '../../../../../utils/formatDate';
-import {TextCell} from '../TextCell/TextCell';
-import {useLocationSettings} from "../../../../../hooks/useLocationSettings";
+import { Tooltip, Typography } from '@mui/material';
+import { formatDateYMD } from '../../../../../utils/formatDate';
+import { TextCell } from '../TextCell/TextCell';
+import { useLocationSettings } from '../../../../../hooks/useLocationSettings';
interface IFeatureArchivedCellProps {
value?: string | Date | null;
@@ -20,7 +20,10 @@ export const FeatureArchivedCell: VFC = ({
{archivedAt && (