diff --git a/src/components/Dashboard/Production/GCodeFiles/NewGCodeFile.jsx b/src/components/Dashboard/Production/GCodeFiles/NewGCodeFile.jsx index 0b6d71e..7df6e6e 100644 --- a/src/components/Dashboard/Production/GCodeFiles/NewGCodeFile.jsx +++ b/src/components/Dashboard/Production/GCodeFiles/NewGCodeFile.jsx @@ -5,7 +5,6 @@ import NewObjectForm from '../../common/NewObjectForm' import WizardView from '../../common/WizardView' const NewGCodeFile = ({ onOk, defaultValues }) => { - const { showSuccess } = useMessageContext() return ( { onSubmit={async () => { const result = await handleSubmit() if (result) { - showSuccess('Finished uploading GCode file!') onOk() } }} diff --git a/src/components/Dashboard/Production/Jobs/NewJob.jsx b/src/components/Dashboard/Production/Jobs/NewJob.jsx index 526a107..d750f1e 100644 --- a/src/components/Dashboard/Production/Jobs/NewJob.jsx +++ b/src/components/Dashboard/Production/Jobs/NewJob.jsx @@ -5,7 +5,6 @@ import NewObjectForm from '../../common/NewObjectForm' import WizardView from '../../common/WizardView' const NewJob = ({ onOk, defaultValues }) => { - const { showSuccess } = useMessageContext() return ( { - const { showSuccess } = useMessageContext() return (