2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 18:45:40 +00:00

Remove notYetImplemented func

This commit is contained in:
Oliver Walters
2025-04-19 12:11:50 +00:00
parent 61dd52ac5e
commit a35408380e
2 changed files with 2 additions and 23 deletions

View File

@ -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
*/

View File

@ -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() {
<Trans>Actions ... </Trans>
</Text>
<Group>
<ActionIcon
onClick={notYetImplemented}
title={t`Count`}
variant='default'
>
<ActionIcon onClick={() => {}} title={t`Count`} variant='default'>
<IconNumber />
</ActionIcon>
</Group>