Skip to content

Commit

Permalink
docs(demo): Add ForkEvent in union
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Sep 27, 2024
1 parent 198ac44 commit 1b498c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/github-app/src/resources/Event.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
ExclamationCircleOutlined,
EyeOutlined,
PullRequestOutlined,
ForkOutlined,
} from '@ant-design/icons';
import { schema } from '@data-client/rest';
import { Temporal } from '@js-temporal/polyfill';
Expand Down Expand Up @@ -87,6 +88,7 @@ export const EventResource = githubResource({
PullRequestEvent,
IssuesEvent,
PushEvent,
ForkEvent: Event,
PullRequestReviewEvent,
IssueCommentEvent: Event,
PullRequestReviewCommentEvent: Event,
Expand All @@ -105,6 +107,7 @@ export const EventResource = githubResource({
export const typeToIcon: Record<Event['type'], JSX.Element> = {
PullRequestEvent: <PullRequestOutlined />,
PushEvent: <CloudUploadOutlined />,
ForkEvent: <ForkOutlined />,
WatchEvent: <EyeOutlined />,
IssueCommentEvent: <CommentOutlined />,
PullRequestReviewEvent: <EyeOutlined />,
Expand All @@ -114,6 +117,7 @@ export const typeToIcon: Record<Event['type'], JSX.Element> = {
type EventType =
| 'WatchEvent'
| 'PushEvent'
| 'ForkEvent'
| 'IssuesEvent'
| 'IssueCommentEvent'
| 'CreateEvent'
Expand Down

0 comments on commit 1b498c3

Please sign in to comment.