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: update text-with-icon #219

Merged
merged 1 commit into from
Oct 28, 2024
Merged

fix: update text-with-icon #219

merged 1 commit into from
Oct 28, 2024

Conversation

lialila
Copy link
Contributor

@lialila lialila commented Oct 25, 2024

No description provided.

Copy link

vercel bot commented Oct 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
boemly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 2:49pm

Copy link

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
dist/boemly.cjs.production.min.js 1.56 MB (0%) 32 s (0%) 6.6 s (-2.38% 🔽) 38.5 s
dist/boemly.esm.js 71.86 KB (0%) 1.5 s (0%) 804 ms (+15.58% 🔺) 2.3 s

@lialila lialila marked this pull request as ready for review October 25, 2024 14:55
Comment on lines +48 to +52
const ButtonElement = button && (
<Button mt="auto" size="lg" onClick={button.onClick} maxWidth="24">
{button.text}
</Button>
);
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
const ButtonElement = button && (
<Button mt="auto" size="lg" onClick={button.onClick} maxWidth="24">
{button.text}
</Button>
);
const ButtonElement = (
<Button mt="auto" size="lg" onClick={button.onClick} maxWidth="24">
{button?.text}
</Button>
);

What do you think about this? It's more elegant IMO. But I don't mind too much.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this doesn't work unfortunately, it displays a button without text even if the button is not defined in slice

@lialila lialila merged commit 8457fb1 into main Oct 28, 2024
8 checks passed
@lialila lialila deleted the uc/update-text-with-icon branch October 28, 2024 07:56
Copy link

🎉 This PR is included in version 6.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants