Skip to content

Commit

Permalink
only animate button
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Oct 12, 2023
1 parent 42cc78d commit 4732b3d
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions packages/ui/components/core/Donate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,24 @@ export const DonateModal = () => {

return (
<>
<Affix position={buttonPosition} style={{ display: isSupportPage ? 'none' : undefined }}>
<Popover
opened={showPopover}
withArrow
position='top-end'
closeOnClickOutside={false}
closeOnEscape={false}
keepMounted
arrowPosition='center'
arrowSize={12}
middlewares={{ inline: true, shift: true, flip: false }}
withinPortal
// width={isMobile ? width - 40 : undefined}
styles={{ dropdown: { maxWidth: '90vw', textAlign: 'center' } }}
shadow='xl'
zIndex={100}
>
<Popover.Target>
<Popover
opened={showPopover}
withArrow
position='top-end'
closeOnClickOutside={false}
closeOnEscape={false}
keepMounted
arrowPosition='center'
arrowSize={12}
middlewares={{ inline: true, shift: true, flip: false }}
withinPortal
// width={isMobile ? width - 40 : undefined}
styles={{ dropdown: { maxWidth: '90vw', textAlign: 'center' } }}
shadow='xl'
zIndex={200}
>
<Popover.Target>
<Affix position={buttonPosition} style={{ display: isSupportPage ? 'none' : undefined }}>
<Button
className={cx(
// 'kindful-donate-btn',
Expand All @@ -106,12 +106,12 @@ export const DonateModal = () => {
>
{showEmoji ? donateEmoji : t('words.donate')}
</Button>
</Popover.Target>
<Popover.Dropdown>
<Text variant={variant.Text.utility1}>{t(showEmoji ? 'donate.hover' : 'donate.popup')}</Text>
</Popover.Dropdown>
</Popover>
</Affix>
</Affix>
</Popover.Target>
<Popover.Dropdown>
<Text variant={variant.Text.utility1}>{t(showEmoji ? 'donate.hover' : 'donate.popup')}</Text>
</Popover.Dropdown>
</Popover>
<Modal.Root
opened={modalOpened}
onClose={modalHandler.close}
Expand Down

0 comments on commit 4732b3d

Please sign in to comment.