Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

❓ fix(components/molecule/notification): Fix MoleculeNotification buttons prop to avoid render container if no length #2655

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jelowin
Copy link
Contributor

@jelowin jelowin commented Oct 26, 2023

molecule/notification

#2609:

Description, Motivation and Context

Types of changes

  • 🪲 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🧾 Documentation
  • 📷 Demo
  • 🧪 Test
  • 🧠 Refactor
  • 💄 Styles
  • 🛠️ Tool

Screenshots - Animations

@jelowin jelowin changed the title fix(components/molecule/notification): Fix MoleculeNotification butto… fix(components/molecule/notification): Fix MoleculeNotification buttons prop to avoid render contain Oct 26, 2023
@jelowin jelowin changed the title fix(components/molecule/notification): Fix MoleculeNotification buttons prop to avoid render contain ❓ fix(components/molecule/notification): Fix MoleculeNotification buttons prop to avoid render contain Oct 26, 2023
@jelowin jelowin changed the title ❓ fix(components/molecule/notification): Fix MoleculeNotification buttons prop to avoid render contain ❓ fix(components/molecule/notification): Fix MoleculeNotification buttons prop to avoid render container if no lenght Oct 26, 2023
@jelowin jelowin changed the title ❓ fix(components/molecule/notification): Fix MoleculeNotification buttons prop to avoid render container if no lenght ❓ fix(components/molecule/notification): Fix MoleculeNotification buttons prop to avoid render container if no length Oct 26, 2023
@@ -131,9 +131,9 @@ const MoleculeNotification = ({
</div>
)}
</div>
{buttons && (
{buttons.length ? (
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
{buttons.length ? (
{buttons?.length ? (

and remove the default value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants