diff --git a/package.json b/package.json index 6126827..050dfa1 100644 --- a/package.json +++ b/package.json @@ -3,15 +3,16 @@ "version": "0.1.0", "private": true, "dependencies": { + "@ant-design/happy-work-theme": "^1.0.0", "@ant-design/icons": "^4.2.1", "antd": "^5.0.0", "compare-versions": "^3.1.0", "gh-pages": "^3.2.3", - "react": "^16.8.6", + "react": "^18.0.0", "react-context-io": "^0.0.7", - "react-dom": "^16.8.6", + "react-dom": "^18.0.0", "react-intl": "^2.4.0", - "react-scripts": "^3.0.0", + "react-scripts": "^5.0.0", "remarkable": "^1.7.1", "sass": "^1.49.9", "whatwg-fetch": "^2.0.3" @@ -37,7 +38,7 @@ "pretty-quick": "^2.0.1", "reactive.macro": "^0.0.7", "source-map-explorer": "^1.8.0", - "typescript": "^4.0.0" + "typescript": "^5.0.0" }, "husky": { "hooks": { diff --git a/src/App.tsx b/src/App.tsx index 42f70bc..7f70db7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import { IntlProvider, addLocaleData } from "react-intl"; import { Layout, Button } from "antd"; +import { HappyProvider } from '@ant-design/happy-work-theme'; import Intro from "./Intro"; import IssueForm from "./IssueForm"; import LocaleContext, { switchLocale } from "./LocaleContext"; @@ -16,6 +17,7 @@ const App: React.FC = () => { addLocaleData(appLocale.data); return ( +
@@ -59,6 +61,7 @@ const App: React.FC = () => { + ); }; diff --git a/src/IssueForm.tsx b/src/IssueForm.tsx index b5073d0..c3b4250 100644 --- a/src/IssueForm.tsx +++ b/src/IssueForm.tsx @@ -125,13 +125,11 @@ const IssueForm: React.FC<{}> = () => { issueType )}\n\n`; const body = encodeURIComponent(withMarker).replace(/%2B/gi, "+"); - const label = - issueType === "feature" ? "&labels=💡%20Feature%20Request" : ""; localStorage.clear(); window.open( - `https://github.com/ant-design/${repo}/issues/new?title=${title}&body=${body}${label}` + `https://github.com/ant-design/${repo}/issues/new?title=${title}&body=${body}&type=${issueType}` ); }, [form, getContent]);