-
Notifications
You must be signed in to change notification settings - Fork 262
feat(funnels): CTA micro-liners to fact screen #4502
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
const badgeComponent = useMemo(() => { | ||
if (!badge?.cta) { | ||
return null; | ||
} | ||
return ( | ||
<Badge | ||
label={badge.cta} | ||
icon={<ReputationLightningIcon className="h-6 w-6" secondary />} | ||
variant={badge.variant} | ||
/> | ||
); | ||
}, [badge?.cta, badge?.variant]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think the useMemo
is needed for us here. Same goes to the other file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't have anything blocking, but looks good overall.
Changes
New badge component that can be used for micro liners in funnel fact:

I took the liberty to rename default and colorful to primary and onion, to stay in line with our other theme names.
DESIGN
Screenshot of all the layouts:
Events
Did you introduce any new tracking events?
Experiment
Did you introduce any new experiments?
Manual Testing
Caution
Please make sure existing components are not breaking/affected by this PR
Jira ticket
MI-894
Preview domain
https://mi-894.preview.app.daily.dev