mirror of
https://github.com/apache/superset.git
synced 2026-05-29 20:29:34 +00:00
feat(Alerts and Reports): Modal redesign (#26202)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: fisjac <jfisher9882@gmail.com> Co-authored-by: Corbin <corbindbullard@gmail.com> Co-authored-by: Lily Kuang <lily@preset.io> Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
@@ -41,6 +41,7 @@ export interface ModalProps {
|
||||
className?: string;
|
||||
children: ReactNode;
|
||||
disablePrimaryButton?: boolean;
|
||||
primaryTooltipMessage?: ReactNode;
|
||||
primaryButtonLoading?: boolean;
|
||||
onHide: () => void;
|
||||
onHandledPrimaryAction?: () => void;
|
||||
@@ -232,6 +233,7 @@ const defaultResizableConfig = (hideFooter: boolean | undefined) => ({
|
||||
const CustomModal = ({
|
||||
children,
|
||||
disablePrimaryButton = false,
|
||||
primaryTooltipMessage,
|
||||
primaryButtonLoading = false,
|
||||
onHide,
|
||||
onHandledPrimaryAction,
|
||||
@@ -274,6 +276,7 @@ const CustomModal = ({
|
||||
key="submit"
|
||||
buttonStyle={primaryButtonType}
|
||||
disabled={disablePrimaryButton}
|
||||
tooltip={primaryTooltipMessage}
|
||||
loading={primaryButtonLoading}
|
||||
onClick={onHandledPrimaryAction}
|
||||
cta
|
||||
|
||||
Reference in New Issue
Block a user