Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/koni/dev/issue-renew-ui' into ko…
Browse files Browse the repository at this point in the history
…ni/dev/merge-airdrop
  • Loading branch information
lw committed May 31, 2024
2 parents a8a2d0a + 5c4ebeb commit 4b8b8f2
Showing 1 changed file with 39 additions and 35 deletions.
74 changes: 39 additions & 35 deletions packages/extension-koni-ui/src/Popup/Home/Invite/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,40 +123,44 @@ const Component = ({ className }: Props): React.ReactElement => {
/>
</div>

<div className='invitation-buttons'>
<Button
block={true}
icon={(
<Icon
customSize={'20px'}
phosphorIcon={UserPlus}
/>
)}
onClick={inviteFriend}
schema={'primary'}
shape={'round'}
size={'xs'}
>
{t('Invite now')}
</Button>

<Button
block={true}
icon={(
<Icon
customSize={'20px'}
phosphorIcon={Copy}
weight={'fill'}
/>
)}
onClick={copyLink}
schema={'secondary'}
shape={'round'}
size={'xs'}
>
{t('Copy Link')}
</Button>
</div>
{
account && (
<div className='invitation-buttons'>
<Button
block={true}
icon={(
<Icon
customSize={'20px'}
phosphorIcon={UserPlus}
/>
)}
onClick={inviteFriend}
schema={'primary'}
shape={'round'}
size={'xs'}
>
{t('Invite now')}
</Button>

<Button
block={true}
icon={(
<Icon
customSize={'20px'}
phosphorIcon={Copy}
weight={'fill'}
/>
)}
onClick={copyLink}
schema={'secondary'}
shape={'round'}
size={'xs'}
>
{t('Copy Link')}
</Button>
</div>
)
}
</div>

{
Expand Down Expand Up @@ -184,7 +188,7 @@ const Component = ({ className }: Props): React.ReactElement => {
);
};

const Invite = styled(Component)<ThemeProps>(({ theme: { extendToken, token } }: ThemeProps) => {
const Invite = styled(Component)<ThemeProps>(({theme: {extendToken, token } }: ThemeProps) => {
return {
overflow: 'hidden',
display: 'flex',
Expand Down

0 comments on commit 4b8b8f2

Please sign in to comment.