mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 13:06:01 +00:00
editor theme
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React from 'react';
|
||||
import Modal from 'react-modal';
|
||||
import styled from 'styled-components';
|
||||
import useTheme from '../theme/useTheme';
|
||||
|
||||
// const StyledModal = styled(Modal)`
|
||||
// position: absolute;
|
||||
@@ -60,6 +61,7 @@ const ModalContent = styled.div`
|
||||
`;
|
||||
|
||||
export default function ModalBase({ modalState, children, isFlex = false, fullScreen = false }) {
|
||||
const theme = useTheme();
|
||||
return (
|
||||
<StyledModal
|
||||
isOpen={modalState.isOpen}
|
||||
|
||||
Reference in New Issue
Block a user