mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-02 19:08:47 +00:00
[PUI] fix a few sonarcloud warnings (#8133)
* fix a few code issues * fix common sonarcloud issues * more small fixes
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
// import SimpleMDE from "react-simplemde-editor";
|
||||
import { t } from '@lingui/macro';
|
||||
import { useMantineColorScheme } from '@mantine/core';
|
||||
import { notifications } from '@mantine/notifications';
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import EasyMDE, { default as SimpleMde } from 'easymde';
|
||||
@@ -60,13 +58,11 @@ export default function NotesEditor({
|
||||
modelType,
|
||||
modelId,
|
||||
editable
|
||||
}: {
|
||||
}: Readonly<{
|
||||
modelType: ModelType;
|
||||
modelId: number;
|
||||
editable?: boolean;
|
||||
}) {
|
||||
const { colorScheme } = useMantineColorScheme();
|
||||
|
||||
}>) {
|
||||
// In addition to the editable prop, we also need to check if the user has "enabled" editing
|
||||
const [editing, setEditing] = useState<boolean>(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user