diff --git a/web/package-lock.json b/web/package-lock.json index 87210ddb0..8bb56fd90 100644 Binary files a/web/package-lock.json and b/web/package-lock.json differ diff --git a/web/package.json b/web/package.json index 823bd43cc..d57091cfd 100644 --- a/web/package.json +++ b/web/package.json @@ -11,7 +11,7 @@ "@types/react": "^16.9.23", "@types/react-dom": "^16.9.5", "@types/react-router-dom": "^5.1.3", - "antd": "^3.26.13", + "antd": "^4.0.3", "babel-plugin-import": "^1.13.0", "customize-cra": "^0.9.1", "react": "^16.13.0", diff --git a/web/src/App.tsx b/web/src/App.tsx index 586e45475..6d36cc739 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -1,4 +1,11 @@ -import { Icon, Layout, Menu, Tag } from "antd"; +import { + ApiOutlined, + DollarOutlined, + GithubOutlined, + TeamOutlined, + TwitterOutlined +} from "@ant-design/icons"; +import { Layout, Menu, Tag } from "antd"; import React from "react"; import { BrowserRouter as Router, @@ -93,7 +100,7 @@ const Twitter = () => ( target="_blank" rel="noopener noreferrer" > - Twitter + Twitter ); @@ -106,7 +113,7 @@ const Community = () => ( target="_blank" rel="noopener noreferrer" > - Community + Community ); @@ -119,7 +126,7 @@ const GitHub = () => ( target="_blank" rel="noopener noreferrer" > - GitHub + GitHub ); @@ -132,7 +139,7 @@ const Api = () => ( target="_blank" rel="noopener noreferrer" > - API + API ); @@ -145,7 +152,7 @@ const Donate = () => ( target="_blank" rel="noopener noreferrer" > - Donate + Donate ); diff --git a/web/src/components/LinkButton.tsx b/web/src/components/LinkButton.tsx index 1ad53baea..7a3fe5e82 100644 --- a/web/src/components/LinkButton.tsx +++ b/web/src/components/LinkButton.tsx @@ -7,7 +7,7 @@ interface Props { text: string; title?: string; type?: ButtonType; - icon?: string; + icon?: React.ReactNode; } export const LinkButton = (props: Props) => diff --git a/web/src/components/ListInfoButton.tsx b/web/src/components/ListInfoButton.tsx index 02cee68dd..37013b331 100644 --- a/web/src/components/ListInfoButton.tsx +++ b/web/src/components/ListInfoButton.tsx @@ -1,4 +1,5 @@ -import { Button, Icon } from "antd"; +import { InfoCircleOutlined } from "@ant-design/icons"; +import { Button } from "antd"; import React from "react"; import { RouteComponentProps } from "react-router-dom"; import slugify from "slugify"; @@ -21,7 +22,7 @@ export const ListInfoButton = (props: RouteComponentProps & Props) => { : props.history.push(listPath) } > - + ); }; diff --git a/web/src/components/SubscribeButtons.tsx b/web/src/components/SubscribeButtons.tsx index 4db0a71a9..8737f4828 100644 --- a/web/src/components/SubscribeButtons.tsx +++ b/web/src/components/SubscribeButtons.tsx @@ -1,3 +1,4 @@ +import { ImportOutlined } from "@ant-design/icons"; import { Button } from "antd"; import { ButtonType } from "antd/lib/button"; import React from "react"; @@ -52,7 +53,7 @@ const SubscribeButton = (props: SubscribeButtonProps) => {