Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #24 from commercelayer/update-actions
Browse files Browse the repository at this point in the history
Update actions UI
  • Loading branch information
pfferrari authored Apr 24, 2024
2 parents 0f0c83e + f8dacd8 commit 82b9146
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/app/src/components/ListItemTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ export const ListItemTag = withSkeletonTemplate<
<EditMetadataOverlay
resourceType={resource.type}
resourceId={resource.id}
title='Edit metadata'
description={`${resource.name}`}
title={resource.name}
/>
)}
{contextMenu}
Expand Down
13 changes: 11 additions & 2 deletions packages/app/src/pages/TagList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { appRoutes } from '#data/routes'
import {
Button,
HomePageLayout,
Icon,
Spacer,
useResourceFilters,
useTokenProvider
Expand Down Expand Up @@ -68,8 +69,16 @@ export function TagList(): JSX.Element {
}
actionButton={
canUser('create', 'tags') ? (
<Link href={appRoutes.new.makePath()}>
<Button variant='link'>Add new</Button>
<Link href={appRoutes.new.makePath()} asChild>
<Button
variant='secondary'
size='mini'
alignItems='center'
aria-label='Add tag'
>
<Icon name='plus' />
Tag
</Button>
</Link>
) : undefined
}
Expand Down

0 comments on commit 82b9146

Please sign in to comment.