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

feat: make page header composable #467

Merged
merged 4 commits into from
Dec 21, 2023
Merged

Conversation

nguyend-nam
Copy link
Collaborator

What does this PR do?

  • Make page header composable

Copy link

changeset-bot bot commented Dec 20, 2023

🦋 Changeset detected

Latest commit: 2a742e2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 41 packages
Name Type
@mochi-ui/page-header Minor
@mochi-ui/layout Patch
@mochi-ui/theme Patch
@mochi-ui/core Patch
@mochi-ui/accordion Patch
@mochi-ui/action-bar Patch
@mochi-ui/alert Patch
@mochi-ui/avatar Patch
@mochi-ui/badge Patch
@mochi-ui/button Patch
@mochi-ui/card Patch
@mochi-ui/checkbox Patch
@mochi-ui/connect-wallet-widget Patch
@mochi-ui/content-editable Patch
@mochi-ui/drawer Patch
@mochi-ui/dropdown Patch
@mochi-ui/footer Patch
@mochi-ui/form Patch
@mochi-ui/icon-button Patch
@mochi-ui/input Patch
@mochi-ui/label Patch
@mochi-ui/list Patch
@mochi-ui/login-widget Patch
@mochi-ui/logo Patch
@mochi-ui/modal Patch
@mochi-ui/page-content Patch
@mochi-ui/pagination Patch
@mochi-ui/popover Patch
@mochi-ui/profile-badge Patch
@mochi-ui/section-header Patch
@mochi-ui/section-list Patch
@mochi-ui/select Patch
@mochi-ui/separator Patch
@mochi-ui/sidebar Patch
@mochi-ui/skeleton Patch
@mochi-ui/switch Patch
@mochi-ui/table Patch
@mochi-ui/tabs Patch
@mochi-ui/toast Patch
@mochi-ui/tooltip Patch
@mochi-ui/top-bar Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Dec 20, 2023

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

Name Status Preview Comments Updated (UTC)
web-design-system ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 20, 2023 10:28am
websites-mochi ✅ Ready (Inspect) Visit Preview Dec 20, 2023 10:28am

Copy link
Collaborator

@zlatanpham zlatanpham left a comment

Choose a reason for hiding this comment

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

One comment


const backButton = (
const PageHeaderBackButton = ({
onBack,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't expose onBack, instead, expose all necessary props of the IconButton (make sure we have as prop so we can use Link instead of push method.

@zlatanpham zlatanpham merged commit 62b7ad9 into main Dec 21, 2023
6 checks passed
@zlatanpham zlatanpham deleted the feat/make-page-header-composable branch December 21, 2023 01:34
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