Add a tooltip to the Copy URL button
We aren't doing the hovercard in the design right now, so this is fine
This commit is contained in:
parent
3b297e426d
commit
3548da4b15
3 changed files with 14 additions and 11 deletions
|
|
@ -216,16 +216,18 @@ const Header = () => {
|
|||
}
|
||||
|
||||
return title !== '' ? (
|
||||
<Button
|
||||
blended={true}
|
||||
rightAccessoryIcon={
|
||||
path === 'p' && hasAccessory ? (
|
||||
<LinkIcon className="stroke" />
|
||||
) : undefined
|
||||
}
|
||||
text={title}
|
||||
onClick={copyToClipboard}
|
||||
/>
|
||||
<Tooltip content={t('tooltips.copy_url')}>
|
||||
<Button
|
||||
blended={true}
|
||||
rightAccessoryIcon={
|
||||
path === 'p' && hasAccessory ? (
|
||||
<LinkIcon className="stroke" />
|
||||
) : undefined
|
||||
}
|
||||
text={title}
|
||||
onClick={copyToClipboard}
|
||||
/>
|
||||
</Tooltip>
|
||||
) : (
|
||||
''
|
||||
)
|
||||
|
|
|
|||
|
|
@ -404,6 +404,7 @@
|
|||
"remix": "Remixed"
|
||||
},
|
||||
"tooltips": {
|
||||
"copy_url": "Copy the URL to this team",
|
||||
"remix": "Make a copy of this team",
|
||||
"save": "Save this team to your account",
|
||||
"source": "Go to original team"
|
||||
|
|
|
|||
|
|
@ -405,7 +405,7 @@
|
|||
"remix": "リミックスされた"
|
||||
},
|
||||
"tooltips": {
|
||||
"remix": "この編成をコピーする",
|
||||
"copy_url": "この編成のURLをコピーする",
|
||||
"save": "この編成をアカウントに保存する",
|
||||
"source": "オリジナルの編成へ"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue