Skip to content

Commit

Permalink
Add link to original resource when viewing a proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
aberonni committed Aug 26, 2024
1 parent bee52bc commit 04ba91f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/pages/resource/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ const AdminToolbar = ({
<span className="mr-auto pl-2 text-sm font-bold uppercase text-muted-foreground">
Admin Features
</span>
{resource.editProposalOriginalResourceId && (
<Link
href={`/resource/${resource.editProposalOriginalResourceId}/`}
className={buttonVariants({ variant: "outline" })}
target="_blank"
>
View original resource
</Link>
)}
<Link
href={`/resource/${resource.id}/edit`}
className={buttonVariants({ variant: "default" })}
Expand Down

0 comments on commit 04ba91f

Please sign in to comment.