Corrected copy to keyboard

This commit is contained in:
Ludoviko 2021-09-17 21:03:03 +01:00
parent b0132e4efe
commit b28c1b6488
No known key found for this signature in database
GPG key ID: 1E66DEA3F5D623D1

View file

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