Skip to content

Commit 311e52f

Browse files
committed
feat: add feature and bug as issue type
1 parent 72990f7 commit 311e52f

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
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"
@@ -37,7 +38,7 @@
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": {

src/App.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as React from "react";
22
import { IntlProvider, addLocaleData } from "react-intl";
33
import { Layout, Button } from "antd";
4+
import { HappyProvider } from '@ant-design/happy-work-theme';
45
import Intro from "./Intro";
56
import IssueForm from "./IssueForm";
67
import 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

src/IssueForm.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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(/%2B/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

0 commit comments

Comments
 (0)