Move copy function and remove copy button
This commit is contained in:
parent
199b02b0cc
commit
0bbd0278a1
1 changed files with 1 additions and 14 deletions
|
|
@ -141,18 +141,6 @@ const Header = () => {
|
|||
else console.error('Failed to unsave team: No party ID')
|
||||
}
|
||||
|
||||
const copyButton = () => {
|
||||
if (router.route === '/p/[party]')
|
||||
return (
|
||||
<Button
|
||||
leftAccessoryIcon={<LinkIcon className="stroke" />}
|
||||
blended={true}
|
||||
text={t('buttons.copy')}
|
||||
onClick={copyToClipboard}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
const title = () => {
|
||||
let title = ''
|
||||
let hasAccessory = false
|
||||
|
|
@ -185,6 +173,7 @@ const Header = () => {
|
|||
) : undefined
|
||||
}
|
||||
text={title}
|
||||
onClick={copyToClipboard}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
@ -266,8 +255,6 @@ const Header = () => {
|
|||
? saveButton()
|
||||
: ''}
|
||||
|
||||
{copyButton()}
|
||||
|
||||
{/* <Button
|
||||
leftAccessoryIcon={<AddIcon className="Add" />}
|
||||
blended={true}
|
||||
|
|
|
|||
Loading…
Reference in a new issue