feature/IO-3103-Ant5-Notifications
This commit is contained in:
@@ -9,6 +9,7 @@ import { selectBodyshop, selectCurrentUser } from "../../redux/user/user.selecto
|
||||
import { handleUpload } from "../documents-upload/documents-upload.utility";
|
||||
import { GenerateSrcUrl } from "../jobs-documents-gallery/job-documents.utility";
|
||||
import LoadingSpinner from "../loading-spinner/loading-spinner.component";
|
||||
import { useNotification } from "../../contexts/Notifications/notificationContext.jsx";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
currentUser: selectCurrentUser,
|
||||
@@ -24,6 +25,7 @@ export function DocumentEditorComponent({ currentUser, bodyshop, document }) {
|
||||
const [uploaded, setuploaded] = useState(false);
|
||||
const markerArea = useRef(null);
|
||||
const { t } = useTranslation();
|
||||
const notification = useNotification();
|
||||
|
||||
const triggerUpload = useCallback(
|
||||
async (dataUrl) => {
|
||||
@@ -45,7 +47,8 @@ export function DocumentEditorComponent({ currentUser, bodyshop, document }) {
|
||||
//billId: billId,
|
||||
tagsArray: ["edited"]
|
||||
//callback: callbackAfterUpload,
|
||||
}
|
||||
},
|
||||
notification
|
||||
);
|
||||
},
|
||||
[bodyshop, currentUser, document]
|
||||
|
||||
Reference in New Issue
Block a user