From 2d818ecf63389764497317ec0786a3154f13ac7f Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 07:41:41 +0000 Subject: [PATCH] style: format code with Prettier and StandardJS This commit fixes the style issues introduced in 958a799 according to the output from Prettier and StandardJS. Details: None --- src/pages/home/index.jsx | 79 ++++++++++++++++++++---------- src/pages/layout/proTabs/index.jsx | 12 ++--- 2 files changed, 57 insertions(+), 34 deletions(-) diff --git a/src/pages/home/index.jsx b/src/pages/home/index.jsx index ee6b268e..f0a386b7 100644 --- a/src/pages/home/index.jsx +++ b/src/pages/home/index.jsx @@ -6,8 +6,8 @@ import CountUp from 'react-countup' // import { PinInput } from 'react-input-pin-code' import SpotlightCard from '@stateless/Spotlight' import Typewriter from 'typewriter-effect' -import Marquee from "react-fast-marquee" -import Masonry, {ResponsiveMasonry} from "react-responsive-masonry" +import Marquee from 'react-fast-marquee' +import Masonry, { ResponsiveMasonry } from 'react-responsive-masonry' import FixTabPanel from '@stateless/FixTabPanel' import TypedText from '@stateless/TypedText' import ReMarkdown from '@stateless/ReMarkdown' @@ -179,7 +179,7 @@ const Home = () => {
-
+
@@ -192,13 +192,11 @@ const Home = () => {
-

- React Animate On Scroll. -

+

React Animate On Scroll.

-

+

@@ -257,20 +255,28 @@ const Home = () => {
- -
+ +
-
-
- 我的中国心 -
+
+
我的中国心
@@ -285,17 +291,17 @@ const Home = () => {
water mark
mask
-
-
-
-
-
-
+
+
+
+
@@ -352,9 +358,7 @@ const Home = () => {
- + @@ -372,15 +376,38 @@ const Home = () => {
-
React
+
+ React +
-
Vue
+
+ Vue +
- ) } diff --git a/src/pages/layout/proTabs/index.jsx b/src/pages/layout/proTabs/index.jsx index 08b29a41..1b5d53eb 100644 --- a/src/pages/layout/proTabs/index.jsx +++ b/src/pages/layout/proTabs/index.jsx @@ -26,13 +26,8 @@ const ProTabs = (props) => { } = theme.useToken() const renderTabBar = (props, DefaultTabBar) => ( - - + + ) @@ -132,7 +127,8 @@ const ProTabs = (props) => { onTabScroll={onTabScroll} onEdit={onEdit} renderTabBar={renderTabBar} - className="layout-container" id="container" + className="layout-container" + id="container" tabBarStyle={{ zIndex: 2, }}