feat(modal): add ModalBodyHeader for Organisation Settings Modal#359
feat(modal): add ModalBodyHeader for Organisation Settings Modal#359
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughA new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR extends the modal UI library with a reusable ModalBodyHeader component to support richer content layouts (e.g., for Organisation Settings modals).
Changes:
- Import
HeaderandReactNodeto support structured title and description content in the modal body. - Add a
ModalBodyHeadercomponent (and itsModalBodyHeaderPropstype) that renders an image, title, and optional description with responsive alignment. - Export
ModalBodyHeaderand its props from the modal module so it can be consumed by other parts of the app.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| return ( | ||
| <div className={cn('flex flex-col gap-32 items-start max-w-xl', className)} {...props}> | ||
| <img src={src} alt={alt} className="size-116 object-contain" /> | ||
| <div className="flex flex-col gap-4 text-center md:text-left!"> |
There was a problem hiding this comment.
The Tailwind class string "text-center md:text-left!" uses text-left!, which is not a valid Tailwind utility syntax (the ! important modifier should prefix the class, e.g. !text-left, or be omitted). This will cause the md: text alignment override to be ignored; consider changing this to a valid Tailwind class such as md:text-left or md:!text-left depending on the intended behavior.
| <div className="flex flex-col gap-4 text-center md:text-left!"> | |
| <div className="flex flex-col gap-4 text-center md:text-left"> |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.