File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.1.0" ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
+ "@ant-design/happy-work-theme" : " ^1.0.0" ,
6
7
"@ant-design/icons" : " ^4.2.1" ,
7
8
"antd" : " ^5.0.0" ,
8
9
"compare-versions" : " ^3.1.0" ,
9
10
"gh-pages" : " ^3.2.3" ,
10
- "react" : " ^16.8.6 " ,
11
+ "react" : " ^18.0.0 " ,
11
12
"react-context-io" : " ^0.0.7" ,
12
- "react-dom" : " ^16.8.6 " ,
13
+ "react-dom" : " ^18.0.0 " ,
13
14
"react-intl" : " ^2.4.0" ,
14
- "react-scripts" : " ^3 .0.0" ,
15
+ "react-scripts" : " ^5 .0.0" ,
15
16
"remarkable" : " ^1.7.1" ,
16
17
"sass" : " ^1.49.9" ,
17
18
"whatwg-fetch" : " ^2.0.3"
37
38
"pretty-quick" : " ^2.0.1" ,
38
39
"reactive.macro" : " ^0.0.7" ,
39
40
"source-map-explorer" : " ^1.8.0" ,
40
- "typescript" : " ^4 .0.0"
41
+ "typescript" : " ^5 .0.0"
41
42
},
42
43
"husky" : {
43
44
"hooks" : {
Original file line number Diff line number Diff line change 1
1
import * as React from "react" ;
2
2
import { IntlProvider , addLocaleData } from "react-intl" ;
3
3
import { Layout , Button } from "antd" ;
4
+ import { HappyProvider } from '@ant-design/happy-work-theme' ;
4
5
import Intro from "./Intro" ;
5
6
import IssueForm from "./IssueForm" ;
6
7
import LocaleContext , { switchLocale } from "./LocaleContext" ;
@@ -16,6 +17,7 @@ const App: React.FC = () => {
16
17
addLocaleData ( appLocale . data ) ;
17
18
18
19
return (
20
+ < HappyProvider >
19
21
< LocaleContext . Provider >
20
22
< Layout className = { styles . layout } >
21
23
< Header className = { styles . header } >
@@ -59,6 +61,7 @@ const App: React.FC = () => {
59
61
</ Footer >
60
62
</ Layout >
61
63
</ LocaleContext . Provider >
64
+ </ HappyProvider >
62
65
) ;
63
66
} ;
64
67
Original file line number Diff line number Diff line change @@ -125,13 +125,11 @@ const IssueForm: React.FC<{}> = () => {
125
125
issueType
126
126
) } \n\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->`;
127
127
const body = encodeURIComponent ( withMarker ) . replace ( / % 2 B / gi, "+" ) ;
128
- const label =
129
- issueType === "feature" ? "&labels=💡%20Feature%20Request" : "" ;
130
128
131
129
localStorage . clear ( ) ;
132
130
133
131
window . open (
134
- `https://github.com/ant-design/${ repo } /issues/new?title=${ title } &body=${ body } ${ label } `
132
+ `https://github.com/ant-design/${ repo } /issues/new?title=${ title } &body=${ body } &type= ${ issueType } `
135
133
) ;
136
134
} , [ form , getContent ] ) ;
137
135
You can’t perform that action at this time.
0 commit comments