Updated birthday command

This commit is contained in:
Ludoviko 2022-01-01 22:34:58 +00:00
parent b28c1b6488
commit 16fee4031d
No known key found for this signature in database
GPG key ID: 1E66DEA3F5D623D1
610 changed files with 52 additions and 1 deletions

View file

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