Move copy function and remove copy button

This commit is contained in:
Justin Edmund 2023-01-27 20:39:57 -08:00
parent 199b02b0cc
commit 0bbd0278a1

View file

@ -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}