Skip to content

Commit

Permalink
fix anchor tag inside export button (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
heatherlogan-scottlogic authored Sep 11, 2023
1 parent 653f796 commit 7b5f5c6
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions frontend/src/components/ExportChat/ExportPDFLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,18 @@ function ExportPDFLink({

return (
<div id="export-chat-box">
<button className="prompt-injection-button">
<PDFDownloadLink
document={
<ExportContent
messages={messages}
emails={emails}
currentPhase={currentPhase}
/>
}
fileName={getFileName()}
>
{"Export"}
</PDFDownloadLink>{" "}
</button>
<PDFDownloadLink
document={
<ExportContent
messages={messages}
emails={emails}
currentPhase={currentPhase}
/>
}
fileName={getFileName()}
>
<button className="prompt-injection-button">Export</button>
</PDFDownloadLink>{" "}
</div>
);
}
Expand Down

0 comments on commit 7b5f5c6

Please sign in to comment.