Skip to content

Commit 4619e29

Browse files
committed
docs(demo): Add ForkEvent in union
1 parent db3558f commit 4619e29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/github-app/src/resources/Event.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
ExclamationCircleOutlined,
55
EyeOutlined,
66
PullRequestOutlined,
7+
ForkOutlined,
78
} from '@ant-design/icons';
89
import { schema } from '@data-client/rest';
910
import { Temporal } from '@js-temporal/polyfill';
@@ -87,6 +88,7 @@ export const EventResource = githubResource({
8788
PullRequestEvent,
8889
IssuesEvent,
8990
PushEvent,
91+
ForkEvent: Event,
9092
PullRequestReviewEvent,
9193
IssueCommentEvent: Event,
9294
PullRequestReviewCommentEvent: Event,
@@ -105,6 +107,7 @@ export const EventResource = githubResource({
105107
export const typeToIcon: Record<Event['type'], JSX.Element> = {
106108
PullRequestEvent: <PullRequestOutlined />,
107109
PushEvent: <CloudUploadOutlined />,
110+
ForkEvent: <ForkOutlined />,
108111
WatchEvent: <EyeOutlined />,
109112
IssueCommentEvent: <CommentOutlined />,
110113
PullRequestReviewEvent: <EyeOutlined />,
@@ -114,6 +117,7 @@ export const typeToIcon: Record<Event['type'], JSX.Element> = {
114117
type EventType =
115118
| 'WatchEvent'
116119
| 'PushEvent'
120+
| 'ForkEvent'
117121
| 'IssuesEvent'
118122
| 'IssueCommentEvent'
119123
| 'CreateEvent'

0 commit comments

Comments
 (0)