-
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.
- Loading branch information
1 parent
2b1b43a
commit 2cf1ace
Showing
10 changed files
with
67 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { components } from "@/core/infrastructure/marketplace-api-client-adapter/__generated/api"; | ||
|
||
export type ApplicantResponse = components["schemas"]["ApplicantResponse"]; | ||
|
||
export interface ApplicantInterface extends ApplicantResponse {} | ||
|
||
export class Applicant implements ApplicantInterface { | ||
applicationId!: ApplicantResponse["applicationId"]; | ||
avatarUrl!: ApplicantResponse["avatarUrl"]; | ||
githubUserId!: ApplicantResponse["githubUserId"]; | ||
login!: ApplicantResponse["login"]; | ||
since!: ApplicantResponse["since"]; | ||
|
||
constructor(props: ApplicantResponse) { | ||
Object.assign(this, props); | ||
} | ||
} |
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
22 changes: 22 additions & 0 deletions
22
shared/panels/contribution-sidepanel/_features/github-comment/github-comment.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,22 @@ | ||
import dynamic from "next/dynamic"; | ||
|
||
import { Paper } from "@/design-system/atoms/paper"; | ||
import { Typo } from "@/design-system/atoms/typo"; | ||
|
||
import { GithubCommentProps } from "@/shared/panels/contribution-sidepanel/_features/github-comment/github-comment.types"; | ||
|
||
const Emoji = dynamic(() => import("react-emoji-render")); | ||
|
||
export function GithubComment({ comment }: GithubCommentProps) { | ||
if (!comment) return null; | ||
|
||
return ( | ||
<Paper size={"lg"} border={"primary"} classNames={{ base: "flex flex-col gap-lg" }}> | ||
<Typo size={"sm"} weight={"medium"} translate={{ token: "panels:contribution.githubComment.title" }} /> | ||
|
||
<Typo as={"p"} size={"xs"} color={"secondary"}> | ||
<Emoji>{comment}</Emoji> | ||
</Typo> | ||
</Paper> | ||
); | ||
} |
3 changes: 3 additions & 0 deletions
3
shared/panels/contribution-sidepanel/_features/github-comment/github-comment.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,3 @@ | ||
export interface GithubCommentProps { | ||
comment?: string; | ||
} |
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 |
---|---|---|
|
@@ -85,5 +85,6 @@ | |
"form": { | ||
"reset": "Reset", | ||
"save": "Save" | ||
} | ||
}, | ||
"description": "Description" | ||
} |