Skip to content

Commit

Permalink
Merge pull request #126 from BaniHillabi/master
Browse files Browse the repository at this point in the history
fix(frontend) : fix copy link button
  • Loading branch information
BaniHillabi authored Sep 11, 2024
2 parents 550eebe + 59978bd commit 871be8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/(admin)/admin/tim/[id]/components/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function TimForm({
}
}


return (
<form action={Update}>
<H1>Profile Tim</H1>
Expand Down Expand Up @@ -99,7 +99,9 @@ export default function TimForm({
/>

{data?.link_berkas ? (
<CopyLinkButton children="Copy Link" href={data.link_berkas ?? ''} />
<CopyLinkButton href={data.link_berkas ?? ''}>
Copy Link
</CopyLinkButton>
) : null}

<div className="flex flex-col gap-2">
Expand Down

0 comments on commit 871be8a

Please sign in to comment.