Skip to content

Commit

Permalink
feat(AU-2035): Add disclaimer to AppSettingsModalBase (openedx#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodra authored May 24, 2024
1 parent d0b3328 commit 732b7ed
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AppSettingsModalBase = ({
isMobile,
children,
footer,
disclaimer,
isOpen,
}) => {
const { formatMessage } = useIntl();
Expand All @@ -31,6 +32,7 @@ const AppSettingsModalBase = ({
</ModalDialog.Header>
<ModalDialog.Body>{children}</ModalDialog.Body>
<ModalDialog.Footer className="p-4">
{disclaimer}
<ActionRow>
<ModalDialog.CloseButton variant="tertiary">
{formatMessage(messages.cancel)}
Expand All @@ -53,11 +55,13 @@ AppSettingsModalBase.propTypes = {
isMobile: PropTypes.bool.isRequired,
children: PropTypes.node.isRequired,
footer: PropTypes.node,
disclaimer: PropTypes.node,
isOpen: PropTypes.bool,
};

AppSettingsModalBase.defaultProps = {
footer: null,
disclaimer: null,
};

export default AppSettingsModalBase;

0 comments on commit 732b7ed

Please sign in to comment.