Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

feat(alert): the title prop is now optional #217

Merged
merged 1 commit into from Apr 21, 2021
Merged

Conversation

3nvi
Copy link
Contributor

@3nvi 3nvi commented Apr 21, 2021

Background

Makes the title prop in the Alert optional.

Changes

  • make the title prop in the Alert optional.
  • Allow Modal's title prop to receive ReactElement

Testing

  • npm run test

Copy link
Contributor

@alexmylonas alexmylonas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -19,7 +19,7 @@ export interface ModalProps {
onClose: () => void;

/** The title to add to the modal */
title?: string;
title?: string | React.ReactElement;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that one @3nvi :)

@3nvi 3nvi merged commit bfceba1 into master Apr 21, 2021
@3nvi 3nvi deleted the feat-alert-optional-title branch April 21, 2021 15:29
@3nvi
Copy link
Contributor Author

3nvi commented Apr 21, 2021

🎉 This PR is included in version 0.93.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@3nvi 3nvi added the released label Apr 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
4 participants