From 8bca48dbdd240ab70fa58e6e9ed4b8dcc442cebf Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 4 Mar 2025 17:54:36 +1100 Subject: [PATCH] Remove quick actions (#9222) * Remove placeholder components - No function - Cleanup for 1.0.0 * Remove Placeholder.tsx --- .../src/components/items/Placeholder.tsx | 38 ------------------- .../Index/Settings/AdminCenter/Index.tsx | 33 +--------------- .../pages/Index/Settings/SystemSettings.tsx | 16 ++++++-- 3 files changed, 15 insertions(+), 72 deletions(-) delete mode 100644 src/frontend/src/components/items/Placeholder.tsx diff --git a/src/frontend/src/components/items/Placeholder.tsx b/src/frontend/src/components/items/Placeholder.tsx deleted file mode 100644 index 6bf47831bc..0000000000 --- a/src/frontend/src/components/items/Placeholder.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { Trans, t } from '@lingui/macro'; -import { Alert, Badge, Stack, Text, Tooltip } from '@mantine/core'; -import { IconInfoCircle } from '@tabler/icons-react'; - -/** - * Small badge to indicate that a feature is a placeholder. - */ -export function PlaceholderPill() { - return ( - - - PLH - - - ); -} - -/** - * Placeholder panel for use in a PanelGroup. - */ -export function PlaceholderPanel() { - return ( - - } - > - This panel has not yet been implemented - - - ); -} diff --git a/src/frontend/src/pages/Index/Settings/AdminCenter/Index.tsx b/src/frontend/src/pages/Index/Settings/AdminCenter/Index.tsx index ecf7841c90..a610d8830b 100644 --- a/src/frontend/src/pages/Index/Settings/AdminCenter/Index.tsx +++ b/src/frontend/src/pages/Index/Settings/AdminCenter/Index.tsx @@ -1,5 +1,5 @@ -import { Trans, t } from '@lingui/macro'; -import { Paper, SimpleGrid, Skeleton, Stack, Text, Title } from '@mantine/core'; +import { t } from '@lingui/macro'; +import { Stack } from '@mantine/core'; import { IconClipboardCheck, IconCoins, @@ -21,7 +21,6 @@ import { import { lazy, useMemo } from 'react'; import PermissionDenied from '../../../../components/errors/PermissionDenied'; -import { PlaceholderPill } from '../../../../components/items/Placeholder'; import PageTitle from '../../../../components/nav/PageTitle'; import { SettingsHeader } from '../../../../components/nav/SettingsHeader'; import type { PanelType } from '../../../../components/panels/Panel'; @@ -215,33 +214,6 @@ export default function AdminCenter() { ]; }, []); - const QuickAction = () => ( - - - <Trans>Quick Actions</Trans> - - - - - Add a new user - - - - - - - - - - - - - ); - - if (!user.isLoggedIn()) { - return ; - } - return ( <> @@ -252,7 +224,6 @@ export default function AdminCenter() { title={t`Admin Center`} subtitle={t`Advanced Options`} /> - , - content: + content: ( + + } + > + This panel has not yet been implemented + + + ) }, { name: 'pricing',