Clean button

This commit is contained in:
MartinBraquet
2026-02-26 01:55:54 +01:00
parent 67fb98c672
commit 04f41c42c4
2 changed files with 9 additions and 5 deletions

View File

@@ -1,11 +1,15 @@
import {ENV_CONFIG} from 'common/envs/constants'
import {Button} from 'web/components/buttons/button'
import {Button, ColorType} from 'web/components/buttons/button'
import {CopyLinkOrShareButton} from 'web/components/buttons/copy-link-button'
import {useUser} from 'web/hooks/use-user'
import {useT} from 'web/lib/locale'
export const ShareProfileButton = (props: {username: string; className?: string}) => {
const {username, className} = props
export const ShareProfileButton = (props: {
username: string
className?: string
color?: ColorType
}) => {
const {username, className, color} = props
const currentUser = useUser()
const t = useT()
const shareUrl =
@@ -18,7 +22,7 @@ export const ShareProfileButton = (props: {username: string; className?: string}
className={className}
url={shareUrl}
eventTrackingName="shareprofile"
color={'gray-outline'}
color={color}
>
<div className="ml-2 text-sm">{t('button.share.label', 'Copy sharing link')}</div>
</CopyLinkOrShareButton>

View File

@@ -61,7 +61,7 @@ export default function SoftGatePage() {
<Row className={'gap-4'}>
<ShareProfileOnXButton username={user?.username} />
<ShareProfileOnLinkedinButton username={user?.username} />
<ShareProfileButton username={user?.username} className={''} />
<ShareProfileButton username={user?.username} color={'gray-outline'} />
</Row>
</Col>
)}