mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
Merge pull request #74 from bknd-io/fix/ui-modal-and-media-reload
fixing ui modal styling and make sure schema reloads on media setting changes
This commit is contained in:
@@ -7,7 +7,12 @@ export function useBkndMedia() {
|
|||||||
const actions = {
|
const actions = {
|
||||||
config: {
|
config: {
|
||||||
patch: async (data: Partial<TAppMediaConfig>) => {
|
patch: async (data: Partial<TAppMediaConfig>) => {
|
||||||
return await bkndActions.set("media", data, true);
|
if (await bkndActions.set("media", data, true)) {
|
||||||
|
await bkndActions.reload();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
#bknd-admin.dark,
|
#bknd-admin.dark,
|
||||||
.dark .bknd-admin {
|
.dark .bknd-admin,
|
||||||
|
.bknd-admin.dark {
|
||||||
--color-primary: 250 250 250; /* zinc-50 */
|
--color-primary: 250 250 250; /* zinc-50 */
|
||||||
--color-background: 30 31 34;
|
--color-background: 30 31 34;
|
||||||
--color-muted: 47 47 52;
|
--color-muted: 47 47 52;
|
||||||
|
|||||||
@@ -111,10 +111,7 @@ CreateModal.defaultTitle = undefined;
|
|||||||
CreateModal.modalProps = {
|
CreateModal.modalProps = {
|
||||||
withCloseButton: false,
|
withCloseButton: false,
|
||||||
size: "xl",
|
size: "xl",
|
||||||
padding: 0,
|
padding: 0
|
||||||
classNames: {
|
|
||||||
root: "bknd-admin"
|
|
||||||
}
|
|
||||||
} satisfies Partial<ModalProps>;
|
} satisfies Partial<ModalProps>;
|
||||||
|
|
||||||
export { ModalBody, ModalFooter, ModalTitle, useStepContext, relationsSchema };
|
export { ModalBody, ModalFooter, ModalTitle, useStepContext, relationsSchema };
|
||||||
|
|||||||
Reference in New Issue
Block a user