From c0d5ef076ab8eb38ac2d9afccdb91c65518a3c3c Mon Sep 17 00:00:00 2001 From: myf <> Date: Thu, 9 Jun 2022 17:43:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4icon=EF=BC=8C=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Svg/Icons/Language.tsx | 5 +++- .../widgets/Menu/components/LangSelector.tsx | 4 ++-- .../src/widgets/Menu/components/MenuEntry.tsx | 3 ++- .../widgets/Menu/components/PanelFooter.tsx | 2 +- .../src/widgets/Menu/icons/Announcement.tsx | 4 ++-- .../src/widgets/Menu/icons/Bazaar.tsx | 4 ++-- .../src/widgets/Menu/icons/BlindBox.tsx | 4 ++-- .../src/widgets/Menu/icons/Board.tsx | 4 ++-- .../src/widgets/Menu/icons/Compound.tsx | 18 +++++++++++++++ .../src/widgets/Menu/icons/Home.tsx | 9 +++++++- .../src/widgets/Menu/icons/Ido.tsx | 8 +++---- .../src/widgets/Menu/icons/NFTBox.tsx | 23 ++++++------------- .../src/widgets/Menu/icons/Recommend.tsx | 4 ++-- .../src/widgets/Menu/icons/index.ts | 1 + 14 files changed, 57 insertions(+), 36 deletions(-) create mode 100644 packages/pancake-uikit/src/widgets/Menu/icons/Compound.tsx diff --git a/packages/pancake-uikit/src/components/Svg/Icons/Language.tsx b/packages/pancake-uikit/src/components/Svg/Icons/Language.tsx index 2a06465..0c7e3c1 100644 --- a/packages/pancake-uikit/src/components/Svg/Icons/Language.tsx +++ b/packages/pancake-uikit/src/components/Svg/Icons/Language.tsx @@ -5,7 +5,10 @@ import { SvgProps } from "../types"; const Icon: React.FC = (props) => { return ( - + ); }; diff --git a/packages/pancake-uikit/src/widgets/Menu/components/LangSelector.tsx b/packages/pancake-uikit/src/widgets/Menu/components/LangSelector.tsx index 40fa1ba..624e8d3 100644 --- a/packages/pancake-uikit/src/widgets/Menu/components/LangSelector.tsx +++ b/packages/pancake-uikit/src/widgets/Menu/components/LangSelector.tsx @@ -22,7 +22,7 @@ const LangSelector: React.FC = ({ currentLang, langs, setLang }) => ( position="top-right" target={ }> - {currentLang?.toUpperCase()} + {currentLang?.toUpperCase()} } > @@ -32,7 +32,7 @@ const LangSelector: React.FC = ({ currentLang, langs, setLang }) => ( fullWidth onClick={() => setLang(lang)} // Safari fix - style={{ minHeight: "32px", height: "auto" }} + style={{ minHeight: "32px", height: "auto", color: "#1FC7D4" }} > {lang.language} diff --git a/packages/pancake-uikit/src/widgets/Menu/components/MenuEntry.tsx b/packages/pancake-uikit/src/widgets/Menu/components/MenuEntry.tsx index 5051e4c..eed6833 100644 --- a/packages/pancake-uikit/src/widgets/Menu/components/MenuEntry.tsx +++ b/packages/pancake-uikit/src/widgets/Menu/components/MenuEntry.tsx @@ -21,7 +21,8 @@ const rainbowAnimation = keyframes` `; const LinkLabel = styled.div<{ isPushed: boolean }>` - color: ${({ isPushed, theme }) => (isPushed ? theme.colors.textSubtle : "transparent")}; + /* color: ${({ isPushed, theme }) => (isPushed ? theme.colors.textSubtle : "transparent")}; */ + color: #999; transition: color 0.4s; flex-grow: 1; `; diff --git a/packages/pancake-uikit/src/widgets/Menu/components/PanelFooter.tsx b/packages/pancake-uikit/src/widgets/Menu/components/PanelFooter.tsx index 2971d0d..94ae749 100644 --- a/packages/pancake-uikit/src/widgets/Menu/components/PanelFooter.tsx +++ b/packages/pancake-uikit/src/widgets/Menu/components/PanelFooter.tsx @@ -75,7 +75,7 @@ const PanelFooter: React.FC = ({ {/* */} - + {t("help center")} diff --git a/packages/pancake-uikit/src/widgets/Menu/icons/Announcement.tsx b/packages/pancake-uikit/src/widgets/Menu/icons/Announcement.tsx index 638c84d..b19d37a 100644 --- a/packages/pancake-uikit/src/widgets/Menu/icons/Announcement.tsx +++ b/packages/pancake-uikit/src/widgets/Menu/icons/Announcement.tsx @@ -7,8 +7,8 @@ const Icon: React.FC = (props) => { diff --git a/packages/pancake-uikit/src/widgets/Menu/icons/Bazaar.tsx b/packages/pancake-uikit/src/widgets/Menu/icons/Bazaar.tsx index 43bf89c..bc0b69e 100644 --- a/packages/pancake-uikit/src/widgets/Menu/icons/Bazaar.tsx +++ b/packages/pancake-uikit/src/widgets/Menu/icons/Bazaar.tsx @@ -7,8 +7,8 @@ const Icon: React.FC = (props) => { diff --git a/packages/pancake-uikit/src/widgets/Menu/icons/BlindBox.tsx b/packages/pancake-uikit/src/widgets/Menu/icons/BlindBox.tsx index 1fe3090..88f8391 100644 --- a/packages/pancake-uikit/src/widgets/Menu/icons/BlindBox.tsx +++ b/packages/pancake-uikit/src/widgets/Menu/icons/BlindBox.tsx @@ -7,8 +7,8 @@ const Icon: React.FC = (props) => { diff --git a/packages/pancake-uikit/src/widgets/Menu/icons/Board.tsx b/packages/pancake-uikit/src/widgets/Menu/icons/Board.tsx index 9b9ef18..c01f385 100644 --- a/packages/pancake-uikit/src/widgets/Menu/icons/Board.tsx +++ b/packages/pancake-uikit/src/widgets/Menu/icons/Board.tsx @@ -7,8 +7,8 @@ const Icon: React.FC = (props) => { diff --git a/packages/pancake-uikit/src/widgets/Menu/icons/Compound.tsx b/packages/pancake-uikit/src/widgets/Menu/icons/Compound.tsx new file mode 100644 index 0000000..9d9b7b1 --- /dev/null +++ b/packages/pancake-uikit/src/widgets/Menu/icons/Compound.tsx @@ -0,0 +1,18 @@ +import React from "react"; +import Svg from "../../../components/Svg/Svg"; +import { SvgProps } from "../../../components/Svg/types"; + +const Icon: React.FC = (props) => { + return ( + + + + ); +}; + +export default Icon; diff --git a/packages/pancake-uikit/src/widgets/Menu/icons/Home.tsx b/packages/pancake-uikit/src/widgets/Menu/icons/Home.tsx index f3e615e..009ffe6 100644 --- a/packages/pancake-uikit/src/widgets/Menu/icons/Home.tsx +++ b/packages/pancake-uikit/src/widgets/Menu/icons/Home.tsx @@ -5,7 +5,14 @@ import { SvgProps } from "../../../components/Svg/types"; const Icon: React.FC = (props) => { return ( - + + {/* */} ); }; diff --git a/packages/pancake-uikit/src/widgets/Menu/icons/Ido.tsx b/packages/pancake-uikit/src/widgets/Menu/icons/Ido.tsx index 9ef2f00..ed70011 100644 --- a/packages/pancake-uikit/src/widgets/Menu/icons/Ido.tsx +++ b/packages/pancake-uikit/src/widgets/Menu/icons/Ido.tsx @@ -9,15 +9,15 @@ const Icon: React.FC = (props) => { diff --git a/packages/pancake-uikit/src/widgets/Menu/icons/NFTBox.tsx b/packages/pancake-uikit/src/widgets/Menu/icons/NFTBox.tsx index dd937fc..2d33bdc 100644 --- a/packages/pancake-uikit/src/widgets/Menu/icons/NFTBox.tsx +++ b/packages/pancake-uikit/src/widgets/Menu/icons/NFTBox.tsx @@ -5,22 +5,13 @@ import { SvgProps } from "../../../components/Svg/types"; const Icon: React.FC = (props) => { return ( - - - - + ); }; diff --git a/packages/pancake-uikit/src/widgets/Menu/icons/Recommend.tsx b/packages/pancake-uikit/src/widgets/Menu/icons/Recommend.tsx index 751aa67..00c60df 100644 --- a/packages/pancake-uikit/src/widgets/Menu/icons/Recommend.tsx +++ b/packages/pancake-uikit/src/widgets/Menu/icons/Recommend.tsx @@ -7,8 +7,8 @@ const Icon: React.FC = (props) => { diff --git a/packages/pancake-uikit/src/widgets/Menu/icons/index.ts b/packages/pancake-uikit/src/widgets/Menu/icons/index.ts index 98d8e6f..0b423ff 100644 --- a/packages/pancake-uikit/src/widgets/Menu/icons/index.ts +++ b/packages/pancake-uikit/src/widgets/Menu/icons/index.ts @@ -24,3 +24,4 @@ export { default as Board } from "./Board"; export { default as NFTBox } from "./NFTBox"; export { default as Recommend } from "./Recommend"; export { default as Ido } from "./Ido"; +export { default as Compound } from "./Compound";