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') 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}