A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
fix: defaultTitle invalid attribute on div (#350)
Meier Lukas4970c3a1b254
diff --git a/packages/modals/src/index.tsx b/packages/modals/src/index.tsxindex 155af31b5..01b476082 100644--- a/packages/modals/src/index.tsx+++ b/packages/modals/src/index.tsx@@ -80,29 +80,33 @@ export const ModalProvider = ({ children }: PropsWithChildren) => {return (<ModalContext.Provider value={{ openModalInner, closeModal }}>- {activeModals.map((modal) => (- <Modal- key={modal.id}- zIndex={getDefaultZIndex("modal") + 1}- display={modal.id === state.current?.id ? undefined : "none"}- style={{- userSelect: modal.id === state.current?.id ? undefined : "none",- }}- styles={{- title: {- fontSize: "1.25rem",- fontWeight: 500,- },- }}- trapFocus={modal.id === state.current?.id}- {...modal.reference.modalProps}- title={translateIfNecessary(t, modal.props.defaultTitle)}- opened={state.modals.length > 0}- onClose={handleCloseModal}- >- {modal.reference.content}- </Modal>- ))}+ {activeModals.map((modal) => {+ const { defaultTitle: _ignored, ...otherModalProps } =+ modal.reference.modalProps;+ return (+ <Modal+ key={modal.id}+ zIndex={getDefaultZIndex("modal") + 1}+ display={modal.id === state.current?.id ? undefined : "none"}+ style={{+ userSelect: modal.id === state.current?.id ? undefined : "none",+ }}+ styles={{+ title: {+ fontSize: "1.25rem",+ fontWeight: 500,+ },+ }}+ trapFocus={modal.id === state.current?.id}+ {...otherModalProps}+ title={translateIfNecessary(t, modal.props.defaultTitle)}+ opened={state.modals.length > 0}+ onClose={handleCloseModal}+ >+ {modal.reference.content}+ </Modal>+ );+ })}{children}</ModalContext.Provider>