Skip to content

Commit

Permalink
style(tangle-dapp): Simplify button text, modify the spinner size
Browse files Browse the repository at this point in the history
  • Loading branch information
AtelyPham committed Jan 23, 2025
1 parent 321997b commit b27377d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions apps/tangle-dapp/src/components/account/ClaimRewardAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import useRewardsTx from '../../data/rewards/useRewardsTx';
import useAgnosticAccountInfo from '../../hooks/useAgnosticAccountInfo';
import ActionItem from './ActionItem';
import { useWebbUI } from '@webb-tools/webb-ui-components/hooks/useWebbUI';
import { twMerge } from 'tailwind-merge';

export default function ClaimRewardAction() {
const { notificationApi } = useWebbUI();
Expand Down Expand Up @@ -100,20 +101,24 @@ export default function ClaimRewardAction() {
<ActionItem
Icon={isLoading ? SpinnerIcon : VipDiamondLine}
isDisabled={isLoading}
label="Unclaimed Rewards"
label="Rewards"
hasNotificationDot
onClick={handleClick}
tooltip={
<>
Congratulations! You have <strong>{nativeClaimableAmount}</strong>{' '}
{activeChain.nativeCurrency.symbol}
unclaimed rewards.
{activeChain.nativeCurrency.symbol} unclaimed rewards.
</>
}
/>
);
}

const SpinnerIcon = (props: IconBase) => {
return <Spinner {...props} />;
return (
<Spinner
{...props}
className={twMerge('min-w-6 min-h-6', props.className)}
/>
);
};

0 comments on commit b27377d

Please sign in to comment.