Updated for Matrix

Corrected copy to clipboard
This commit is contained in:
Ludoviko 2022-01-09 21:08:34 +00:00
parent b45268b2c5
commit 06cc898770
No known key found for this signature in database
GPG key ID: 1E66DEA3F5D623D1
10 changed files with 18 additions and 7 deletions

View file

@ -27,7 +27,7 @@ export default function BirthdaysPage() {
dateFormat="dd/MM" />
<Heading>Command to set your birthday: </Heading>
<Paragraph>{`/set-birthday ${Intl.DateTimeFormat().resolvedOptions().timeZone} ${moment(date).format("MM/DD")}`}</Paragraph>
<CopyToClipboard onCopy={() => setCopied("Copied!")} text={`bd!setup ${Intl.DateTimeFormat().resolvedOptions().timeZone} ${moment(date).format("MM/DD")}`}>
<CopyToClipboard onCopy={() => setCopied("Copied!")} text={`/set-birthday ${Intl.DateTimeFormat().resolvedOptions().timeZone} ${moment(date).format("MM/DD")}`}>
<button className="mx-4 px-4 dark:text-gray-300 dark:bg-gray-500 bg-white">{copied}</button>
</CopyToClipboard>
</div>