Skip to content

Commit 7d8dcb4

Browse files
committed
Fix error modal
1 parent 2ccc007 commit 7d8dcb4

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
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.43",
3+
"version": "0.1.44",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/components/Modals/ErrorModal.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ export type ErrorVariant = "error" | "warning" | "info";
1313

1414
const ErrorModal = () => {
1515
const theme = useTheme();
16-
const { isOpen, msg, type, close } = {
17-
isOpen: true,
18-
msg: "Error",
19-
type: ErrorType.INFO,
20-
close: () => {},
21-
};
16+
const { isOpen, msg, type, close } = useError();
2217

2318
const [isModalOpen, setModalOpen] = useState<boolean>(isOpen);
2419
const modalRef = useRef<HTMLDialogElement>(null);

0 commit comments

Comments
 (0)