Skip to content

Commit

Permalink
DAPP-1967 added lozenge tags support in staking activities
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmalhotra1420 committed Nov 12, 2024
1 parent bb50fdd commit b80e538
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions src/modules/rewards/components/StakePushActivitiesListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Activity, StakeActivityResponse, UsersActivity } from 'queries';
import { useAccount } from 'hooks';

// components
import { Box, Button, Lock, Multiplier, RewardsBell, Skeleton, Text } from 'blocks';
import { Box, Button, Lock, Lozenge, Multiplier, RewardsBell, Skeleton, Star, Text } from 'blocks';
import { RewardsActivityIcon } from './RewardsActivityIcon';
import { ActivityButton } from './ActivityButton';

Expand Down Expand Up @@ -93,23 +93,46 @@ const StakePushActivitiesListItem: FC<StakeActivitiesItemProps> = ({
gap={{ ml: 'spacing-sm', initial: 'spacing-xxxs' }}
alignItems={{ ml: 'center' }}
>
<Box display={{ ml: 'block', initial: 'none' }}>
<Box
display={{ ml: 'flex', initial: 'none' }}
flexDirection="column"
alignItems="center"
>
<Text
color="text-primary"
variant="h6-bold"
textAlign="center"
>
{activity?.activityTitle}
</Text>
{activity?.tags?.map((tag) => (
<Lozenge
size="small"
icon={<Star />}
>
{tag}
</Lozenge>
))}
</Box>
<Box display={{ ml: 'none', initial: 'block' }}>
<Box
display={{ ml: 'none', initial: 'flex' }}
gap="spacing-xs"
>
<Text
color="text-primary"
variant="bl-semibold"
textAlign="center"
>
{activity?.activityTitle}
</Text>
{activity?.tags?.map((tag) => (
<Lozenge
size="small"
icon={<Star />}
>
{tag}
</Lozenge>
))}
</Box>

{activity.points > 0 && (
Expand Down

0 comments on commit b80e538

Please sign in to comment.