-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(Token): resolve circular deps * fix(Reward): resolve circular deps
- Loading branch information
1 parent
604e9a3
commit 4b24470
Showing
18 changed files
with
85 additions
and
101 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/components/[guild]/Requirements/components/GuildCheckout/components/GuildPinReward.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/components/[guild]/RoleCard/components/RewardDisplay.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { ChakraProps, HStack, Stack, Wrap, Text } from "@chakra-ui/react" | ||
import { PropsWithChildren, ReactNode } from "react" | ||
|
||
export const RewardDisplay = ({ | ||
icon, | ||
label, | ||
rightElement, | ||
children, | ||
...chakraProps | ||
}: PropsWithChildren< | ||
{ | ||
icon?: ReactNode | ||
label: ReactNode | ||
rightElement?: ReactNode | ||
} & ChakraProps | ||
>) => ( | ||
<HStack pt="3" spacing={2} alignItems={"flex-start"} {...chakraProps}> | ||
{icon} | ||
|
||
<Stack w="full" spacing={0.5}> | ||
<Wrap spacingY={0.5}> | ||
<Text maxW="calc(100% - var(--chakra-sizes-12))">{label}</Text> | ||
{rightElement} | ||
</Wrap> | ||
|
||
{children} | ||
</Stack> | ||
</HStack> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Transition } from "framer-motion" | ||
import { GuildPlatform, Role, RolePlatform } from "types" | ||
|
||
export type RewardProps = { | ||
role: Role // should change to just roleId when we won't need memberCount anymore | ||
platform: RolePlatform | ||
withLink?: boolean | ||
withMotionImg?: boolean | ||
isLinkColorful?: boolean | ||
} | ||
|
||
export type RewardIconProps = { | ||
rolePlatformId: number | ||
guildPlatform: GuildPlatform | ||
withMotionImg?: boolean | ||
transition?: Transition | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
.../RolePlatforms/components/AddRoleRewardModal/components/AddTokenPanel/components/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum SnapshotOption { | ||
GUILD_POINTS = "GUILD_POINTS", | ||
CUSTOM = "CUSTOM", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters