From 18d5f4c273366c3421e24a9ceb3739d4ed351825 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 25 Sep 2021 15:15:32 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E4=B8=8A=E9=83=A8=E5=88=86=E6=A0=B7=E5=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/SectionHeader.tsx | 6 +++--- web/src/components/modals/SettingsView/Account.tsx | 6 +++--- web/src/routes/Entry/index.tsx | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/src/components/SectionHeader.tsx b/web/src/components/SectionHeader.tsx index 089f121d..b3ed6b06 100644 --- a/web/src/components/SectionHeader.tsx +++ b/web/src/components/SectionHeader.tsx @@ -11,7 +11,7 @@ export const SectionHeader: React.FC = React.memo( (props) => { const [visible, setVisible] = useState(false); return ( -
+
{React.isValidElement(props.menu) ? ( = React.memo( trigger={['click']} >
-
{props.children}
+
{props.children}
= React.memo(
) : ( -
{props.children}
+
{props.children}
)}
); diff --git a/web/src/components/modals/SettingsView/Account.tsx b/web/src/components/modals/SettingsView/Account.tsx index afcd3410..fe404cb1 100644 --- a/web/src/components/modals/SettingsView/Account.tsx +++ b/web/src/components/modals/SettingsView/Account.tsx @@ -66,8 +66,8 @@ export const SettingsAccount: React.FC = React.memo(() => { return (
-
-
+
+
{
-
+
{