Skip to content

Commit 7991ed8

Browse files
committed
Add error modal
1 parent 1deea49 commit 7991ed8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-ide-interface",
3-
"version": "0.1.41",
3+
"version": "0.1.42",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/utils/errorProvider.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { createContext, useContext, useState } from "react";
2+
import ErrorModal from "src/components/Modals/ErrorModal";
23
import { Error, ErrorType } from "Types";
34

45
const ErrorContext = createContext<Error>({
@@ -57,7 +58,10 @@ export const ErrorProvider = ({ children }: { children: any }) => {
5758
};
5859

5960
return (
60-
<ErrorContext.Provider value={context}>{children}</ErrorContext.Provider>
61+
<ErrorContext.Provider value={context}>
62+
{children}
63+
<ErrorModal />
64+
</ErrorContext.Provider>
6165
);
6266
};
6367

0 commit comments

Comments
 (0)