feat(frontend): locale for dates and tooltip for copy link button (#492)
* Add tooltip for copy button * Set locale globally for moment.js * format * remove debugging log * refactor: rename translation key --------- Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
@@ -53,10 +53,18 @@ function CopyTextField(props: { link: string }) {
|
||||
</ActionIcon>
|
||||
</a>
|
||||
</Tooltip>
|
||||
|
||||
{window.isSecureContext && (
|
||||
<ActionIcon onClick={copyLink}>
|
||||
{checkState ? <TbCheck /> : <TbCopy />}
|
||||
</ActionIcon>
|
||||
<Tooltip
|
||||
label={t("common.button.clickToCopy")}
|
||||
position="top"
|
||||
offset={-2}
|
||||
openDelay={200}
|
||||
>
|
||||
<ActionIcon onClick={copyLink}>
|
||||
{checkState ? <TbCheck /> : <TbCopy />}
|
||||
</ActionIcon>
|
||||
</Tooltip>
|
||||
)}
|
||||
</>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user