Skip to content

Commit

Permalink
Add title to create new item button (#5638)
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed May 7, 2021
1 parent 400d882 commit 79d092a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-pears-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/admin-ui': patch
---

Added a `title` value to the create new item button on the dashboard.
1 change: 1 addition & 0 deletions packages-next/admin-ui/src/pages/HomePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const ListCard = ({ listKey, count }: ListCardProps) => {
)}
</Link>
<CreateButton
title={`Create ${list.singular}`}
disabled={isCreateModalOpen}
onClick={() => {
setIsCreateModalOpen(true);
Expand Down

1 comment on commit 79d092a

@vercel
Copy link

@vercel vercel bot commented on 79d092a May 7, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.