From a35408380e749c1d9054fd4fe7bcabec71863982 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 19 Apr 2025 12:11:50 +0000 Subject: [PATCH] Remove notYetImplemented func --- src/frontend/src/functions/notifications.tsx | 14 -------------- src/frontend/src/pages/Index/Scan.tsx | 11 ++--------- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/src/frontend/src/functions/notifications.tsx b/src/frontend/src/functions/notifications.tsx index 4e471e61cc..362cab2f2d 100644 --- a/src/frontend/src/functions/notifications.tsx +++ b/src/frontend/src/functions/notifications.tsx @@ -3,20 +3,6 @@ import { notifications } from '@mantine/notifications'; import { IconCircleCheck, IconExclamationCircle } from '@tabler/icons-react'; import { extractErrorMessage } from './api'; -/** - * Show a notification that the feature is not yet implemented - */ -export function notYetImplemented() { - notifications.hide('not-implemented'); - - notifications.show({ - title: t`Not implemented`, - message: t`This feature is not yet implemented`, - color: 'red', - id: 'not-implemented' - }); -} - /** * Show a notification that the user does not have permission to perform the action */ diff --git a/src/frontend/src/pages/Index/Scan.tsx b/src/frontend/src/pages/Index/Scan.tsx index 51d77a055b..99a6cec273 100644 --- a/src/frontend/src/pages/Index/Scan.tsx +++ b/src/frontend/src/pages/Index/Scan.tsx @@ -30,10 +30,7 @@ import { BarcodeInput } from '../../components/barcodes/BarcodeInput'; import type { BarcodeScanItem } from '../../components/barcodes/BarcodeScanItem'; import { StylishText } from '../../components/items/StylishText'; import PageTitle from '../../components/nav/PageTitle'; -import { - notYetImplemented, - showApiErrorMessage -} from '../../functions/notifications'; +import { showApiErrorMessage } from '../../functions/notifications'; import BarcodeScanTable from '../../tables/general/BarcodeScanTable'; export default function Scan() { @@ -177,11 +174,7 @@ export default function Scan() { Actions ... - + {}} title={t`Count`} variant='default'>