mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 00:48:25 +00:00
Bug fix: passed darkmode prop to Modal (#912)
This commit is contained in:
parent
177782c955
commit
3f22edb977
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ import { SubContainer } from '../SubContainer';
|
|||
import { ConfigHandle } from '../ConfigHandle';
|
||||
import { resolveWidgetFieldValue } from '../../_helpers/utils';
|
||||
|
||||
export const Modal = function Modal({ id, component, height, containerProps, currentState }) {
|
||||
export const Modal = function Modal({ id, component, height, containerProps, currentState, darkMode }) {
|
||||
const [show, showModal] = useState(false);
|
||||
const parentRef = useRef(null);
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ export const Modal = function Modal({ id, component, height, containerProps, cur
|
|||
<BootstrapModal.Header>
|
||||
<BootstrapModal.Title>{title}</BootstrapModal.Title>
|
||||
<div>
|
||||
<Button variant="light" size="sm" onClick={hideModal}>
|
||||
<Button variant={darkMode ? 'secondary' : 'light'} size="sm" onClick={hideModal}>
|
||||
x
|
||||
</Button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue