-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
B 2730 create rewards side panel (#633)
- Loading branch information
Showing
39 changed files
with
786 additions
and
117 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
export * from "./use-get-project-rewards"; | ||
export * from "./use-get-project-reward"; | ||
export * from "./use-get-project-reward-items"; | ||
export * from "./use-create-rewards"; | ||
export * from "./use-add-other-work"; | ||
export * from "./use-add-other-pull-request"; | ||
export * from "./use-add-other-issue"; | ||
export * from "./use-cancel-project-reward"; | ||
export * from "./use-get-rewards"; | ||
export * from "./use-get-reward-by-id"; |
26 changes: 0 additions & 26 deletions
26
core/application/react-query-adapter/reward/client/use-get-project-reward-items.ts
This file was deleted.
Oops, something went wrong.
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
49 changes: 49 additions & 0 deletions
49
design-system/organisms/timeline-item/adapters/default/default.adapter.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,49 @@ | ||
import { ElementType } from "react"; | ||
|
||
import { Badge } from "@/design-system/atoms/badge"; | ||
import { Typo } from "@/design-system/atoms/typo"; | ||
|
||
import { cn } from "@/shared/helpers/cn"; | ||
|
||
import { TimelineItemPort } from "../../timeline-item.types"; | ||
import { TimelineItemDefaultVariants } from "./default.variants"; | ||
|
||
export function TimelineItemDefaultAdapter<C extends ElementType = "div">({ | ||
as, | ||
classNames, | ||
htmlProps, | ||
label, | ||
badgeProps = {}, | ||
color = "brand", | ||
endContent, | ||
children, | ||
icon, | ||
}: TimelineItemPort<C>) { | ||
const Component = as || "div"; | ||
const slots = TimelineItemDefaultVariants(); | ||
|
||
return ( | ||
<Component {...htmlProps} className={cn(slots.base(), classNames?.base)}> | ||
<div className={cn(slots.header(), classNames?.header)}> | ||
<div className={cn(slots.titleContainer(), classNames?.titleContainer)}> | ||
<Badge size={"xs"} color={color} shape={"squared"} {...badgeProps} icon={icon} iconOnly={true} /> | ||
{label ? ( | ||
<Typo size={"xs"} weight={"medium"} as={"div"}> | ||
{label} | ||
</Typo> | ||
) : null} | ||
</div> | ||
{!!endContent && ( | ||
<Typo color={"secondary"} size={"xs"} weight={"regular"} as={"div"}> | ||
{endContent} | ||
</Typo> | ||
)} | ||
</div> | ||
{!!children && ( | ||
<div className={cn(slots.contentContainer(), classNames?.contentContainer)}> | ||
<div className={cn(slots.contentInner(), classNames?.contentInner)}>{children}</div> | ||
</div> | ||
)} | ||
</Component> | ||
); | ||
} |
13 changes: 13 additions & 0 deletions
13
design-system/organisms/timeline-item/adapters/default/default.variants.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,13 @@ | ||
import { tv } from "tailwind-variants"; | ||
|
||
export const TimelineItemDefaultVariants = tv({ | ||
slots: { | ||
base: "flex w-full flex-col", | ||
header: "flex w-full items-center justify-between gap-1", | ||
titleContainer: "flex flex-row items-center justify-start gap-3", | ||
contentContainer: "w-full pl-9 pt-4", | ||
contentInner: "w-full", | ||
}, | ||
variants: {}, | ||
defaultVariants: {}, | ||
}); |
Oops, something went wrong.