Skip to content

Commit

Permalink
fix(LeaderboardAirdropCard): wrap ClaimTokenButton in a RolePlatformP…
Browse files Browse the repository at this point in the history
…rovider
  • Loading branch information
BrickheadJohnny committed Jan 2, 2025
1 parent 3fead18 commit 0dea452
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/components/[guild]/leaderboard/LeaderboardAirdropCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import useRolePlatformsOfReward from "rewards/Token/hooks/useRolePlatformsOfRewa
import { GuildPlatform } from "types"
import { useTokenRewards } from "../AccessHub/hooks/useTokenRewards"
import AvailabilityTags from "../RolePlatforms/components/PlatformCard/components/AvailabilityTags"
import { RolePlatformProvider } from "../RolePlatforms/components/RolePlatformProvider"
import useGuild from "../hooks/useGuild"
import LeaderboardAirdropFallbackCard from "./LeaderboardAirdropFallbackCard"

Expand Down Expand Up @@ -137,12 +138,19 @@ const LeaderboardAirdropCard = () => {
</Flex>
</Stack>

<ClaimTokenButton
size={{ base: "sm", sm: "md" }}
w="auto"
flexShrink={0}
rolePlatform={rolePlatforms[0]}
/>
<RolePlatformProvider
rolePlatform={{
...rolePlatforms[0],
guildPlatform,
}}
>
<ClaimTokenButton
size={{ base: "sm", sm: "md" }}
w="auto"
flexShrink={0}
rolePlatform={rolePlatforms[0]}
/>
</RolePlatformProvider>
</HStack>
</Card>
)
Expand Down

0 comments on commit 0dea452

Please # to comment.