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')
|
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 = () => {
|
const title = () => {
|
||||||
let title = ''
|
let title = ''
|
||||||
let hasAccessory = false
|
let hasAccessory = false
|
||||||
|
|
@ -185,6 +173,7 @@ const Header = () => {
|
||||||
) : undefined
|
) : undefined
|
||||||
}
|
}
|
||||||
text={title}
|
text={title}
|
||||||
|
onClick={copyToClipboard}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -266,8 +255,6 @@ const Header = () => {
|
||||||
? saveButton()
|
? saveButton()
|
||||||
: ''}
|
: ''}
|
||||||
|
|
||||||
{copyButton()}
|
|
||||||
|
|
||||||
{/* <Button
|
{/* <Button
|
||||||
leftAccessoryIcon={<AddIcon className="Add" />}
|
leftAccessoryIcon={<AddIcon className="Add" />}
|
||||||
blended={true}
|
blended={true}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue