Skip to content

Commit

Permalink
fix: we can share on twitter now (#11962)
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask authored Nov 29, 2024
1 parent c40170c commit d4854ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ interface OperationFooterProps {
chainId?: ChainId
canClaim: boolean
canRefund: boolean
canShare?: boolean
/** Is claiming or checking claim status */
isClaiming: boolean
isRefunding: boolean
Expand All @@ -41,7 +40,6 @@ export function OperationFooter({
chainId,
canClaim,
canRefund,
canShare = true,
isClaiming,
isRefunding,
onShare,
Expand Down Expand Up @@ -99,7 +97,7 @@ export function OperationFooter({
return (
<Box style={{ flex: 1, padding: 12 }}>
<Box className={classes.footer}>
{canRefund || !canShare ? null : (
{canRefund ? null : (
<ActionButton
fullWidth
variant="roundedDark"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ export const RedPacket = memo(function RedPacket({ payload }: RedPacketProps) {
chainId={payloadChainId}
canClaim={canClaim}
canRefund={canRefund}
canShare={platform !== 'twitter'}
isClaiming={isClaiming || checkingClaimStatus}
isRefunding={isRefunding}
onShare={handleShare}
Expand Down

0 comments on commit d4854ab

Please sign in to comment.