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 33 "version" : " 0.1.0" ,
44 "private" : true ,
55 "dependencies" : {
6+ "@ant-design/happy-work-theme" : " ^1.0.0" ,
67 "@ant-design/icons" : " ^4.2.1" ,
78 "antd" : " ^5.0.0" ,
89 "compare-versions" : " ^3.1.0" ,
910 "gh-pages" : " ^3.2.3" ,
10- "react" : " ^16.8.6 " ,
11+ "react" : " ^18.0.0 " ,
1112 "react-context-io" : " ^0.0.7" ,
12- "react-dom" : " ^16.8.6 " ,
13+ "react-dom" : " ^18.0.0 " ,
1314 "react-intl" : " ^2.4.0" ,
14- "react-scripts" : " ^3 .0.0" ,
15+ "react-scripts" : " ^5 .0.0" ,
1516 "remarkable" : " ^1.7.1" ,
1617 "sass" : " ^1.49.9" ,
1718 "whatwg-fetch" : " ^2.0.3"
3738 "pretty-quick" : " ^2.0.1" ,
3839 "reactive.macro" : " ^0.0.7" ,
3940 "source-map-explorer" : " ^1.8.0" ,
40- "typescript" : " ^4 .0.0"
41+ "typescript" : " ^5 .0.0"
4142 },
4243 "husky" : {
4344 "hooks" : {
Original file line number Diff line number Diff line change 11import * as React from "react" ;
22import { IntlProvider , addLocaleData } from "react-intl" ;
33import { Layout , Button } from "antd" ;
4+ import { HappyProvider } from '@ant-design/happy-work-theme' ;
45import Intro from "./Intro" ;
56import IssueForm from "./IssueForm" ;
67import LocaleContext , { switchLocale } from "./LocaleContext" ;
@@ -16,6 +17,7 @@ const App: React.FC = () => {
1617 addLocaleData ( appLocale . data ) ;
1718
1819 return (
20+ < HappyProvider >
1921 < LocaleContext . Provider >
2022 < Layout className = { styles . layout } >
2123 < Header className = { styles . header } >
@@ -59,6 +61,7 @@ const App: React.FC = () => {
5961 </ Footer >
6062 </ Layout >
6163 </ LocaleContext . Provider >
64+ </ HappyProvider >
6265 ) ;
6366} ;
6467
Original file line number Diff line number Diff line change @@ -125,13 +125,11 @@ const IssueForm: React.FC<{}> = () => {
125125 issueType
126126 ) } \n\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->`;
127127 const body = encodeURIComponent ( withMarker ) . replace ( / % 2 B / gi, "+" ) ;
128- const label =
129- issueType === "feature" ? "&labels=💡%20Feature%20Request" : "" ;
130128
131129 localStorage . clear ( ) ;
132130
133131 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 } `
135133 ) ;
136134 } , [ form , getContent ] ) ;
137135
You can’t perform that action at this time.
0 commit comments