mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 05:16:00 +00:00
error boundary
This commit is contained in:
@@ -2,6 +2,7 @@ import React from 'react';
|
||||
import Modal from 'react-modal';
|
||||
import styled from 'styled-components';
|
||||
import useTheme from '../theme/useTheme';
|
||||
import ErrorBoundary from '../utility/ErrorBoundary';
|
||||
|
||||
// const StyledModal = styled(Modal)`
|
||||
// position: absolute;
|
||||
@@ -80,7 +81,7 @@ export default function ModalBase({ modalState, children, isFlex = false, fullSc
|
||||
// zIndex: 1200,
|
||||
// }}
|
||||
>
|
||||
{children}
|
||||
<ErrorBoundary>{children}</ErrorBoundary>
|
||||
</StyledModal>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user