Skip to content

Commit

Permalink
copylink
Browse files Browse the repository at this point in the history
  • Loading branch information
albina committed Oct 15, 2024
1 parent 407969b commit 3b65a21
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import { FC } from 'react'

export const CopyLink: FC<FieldBaseProps> = ({ application }) => {
const { formatMessage } = useLocale()
const { slug } = application.externalData.createLists.data as { slug: string }

return (
<Box>
<Text variant="h4" marginBottom={2}>
{formatMessage(m.shareList)}
</Text>
<Copy linkUrl={'TBD'} buttonTitle={formatMessage(m.copyLink)} />
<Copy linkUrl={`${document.location.origin}${slug}`} buttonTitle={formatMessage(m.copyLink)} />
</Box>
)
}
Expand Down

0 comments on commit 3b65a21

Please sign in to comment.