Updated for Matrix
Corrected copy to clipboard
This commit is contained in:
parent
b45268b2c5
commit
06cc898770
10 changed files with 18 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue