Skip to content

Commit 1febca4

Browse files
committed
Display donate button if field exists
1 parent 04fc826 commit 1febca4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

components/details.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ const Details = ({ downloads, pkg, pkgVersion, type }: DetailsProps) => (
8989
<a href={pkgVersion.url} target="_blank">
9090
<button className="button button-clear">View source</button>
9191
</a>
92+
{pkgVersion.donate ? (
93+
<a href={pkgVersion.donate} target="_blank">
94+
<button className="button button-clear">Donate</button>
95+
</a>
96+
) : ''}
9297
</div>
9398
</div>
9499
</div>

0 commit comments

Comments
 (0)