From 753ce68607bb959669efbe25b0881466290f1891 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 09:23:14 +0000 Subject: [PATCH] style: format code with Prettier and StandardJS This commit fixes the style issues introduced in 624ad0f according to the output from Prettier and StandardJS. Details: None --- src/components/stateless/FloatAny/index.jsx | 4 +- src/components/stateless/TextLoader/index.jsx | 20 +-- src/pages/home/index.jsx | 136 +++++++++--------- 3 files changed, 80 insertions(+), 80 deletions(-) diff --git a/src/components/stateless/FloatAny/index.jsx b/src/components/stateless/FloatAny/index.jsx index 19bc2323..03584228 100644 --- a/src/components/stateless/FloatAny/index.jsx +++ b/src/components/stateless/FloatAny/index.jsx @@ -8,7 +8,7 @@ const FloatAny = ({ amplitude = [10, 30, 30], rotationRange = [15, 15, 7.5], timeOffset = 0, - className, + className }) => { const x = useMotionValue(0) const y = useMotionValue(0) @@ -50,7 +50,7 @@ const FloatAny = ({ rotateX, rotateY, rotateZ, - transformStyle: 'preserve-3d', + transformStyle: 'preserve-3d' }} className={clsx('will-change-transform', className)} > diff --git a/src/components/stateless/TextLoader/index.jsx b/src/components/stateless/TextLoader/index.jsx index 24627cf3..ccbe3af7 100644 --- a/src/components/stateless/TextLoader/index.jsx +++ b/src/components/stateless/TextLoader/index.jsx @@ -2,17 +2,17 @@ import { useState, useEffect } from 'react' import { motion, AnimatePresence } from 'motion/react' -export function LoadingText({ text, dots }) { +export function LoadingText ({ text, dots }) { return ( -
- +
+ {text} {dots} @@ -43,14 +43,14 @@ const TextLoader = ({ messages, interval = 2000, dotCount = 3, direction = 'vert if (direction === 'horizontal') { return ( -
+
@@ -59,14 +59,14 @@ const TextLoader = ({ messages, interval = 2000, dotCount = 3, direction = 'vert } return ( -
+
diff --git a/src/pages/home/index.jsx b/src/pages/home/index.jsx index d9b90833..3803f066 100644 --- a/src/pages/home/index.jsx +++ b/src/pages/home/index.jsx @@ -64,7 +64,7 @@ const code = { main : "This component needs more than the default code block to be displayed" detailed : "For now, if you want the exact same behaviour, please check the github" }`, - lang: 'typescript', + lang: 'typescript' } const preCode = ` @@ -82,20 +82,20 @@ const preCode = ` const dataSteps = [ { title: 'Step 1', - code: 'npx create-react-app my-app', + code: 'npx create-react-app my-app' }, { title: 'Step 2', - code: 'cd my-app', + code: 'cd my-app' }, { title: 'Step 3', - code: 'npm start', + code: 'npm start' }, { title: 'Step 4', - code: 'npm run build', - }, + code: 'npm run build' + } ] const Home = () => { @@ -151,8 +151,8 @@ const Home = () => { [ { content: text, - role: 'user', - }, + role: 'user' + } ], key, signal @@ -246,10 +246,10 @@ const Home = () => { I love coding in .
- +
- +
@@ -261,7 +261,7 @@ const Home = () => { 'Loading awesome content', 'Almost there', 'Just a moment', - 'Getting things ready', + 'Getting things ready' ]} />
@@ -272,7 +272,7 @@ const Home = () => { width: 360, height: 160, overflow: 'hidden', - backgroundColor: 'rgba(0, 0, 0, 0.2)', + backgroundColor: 'rgba(0, 0, 0, 0.2)' }} > {boxList.map((box, i) => ( @@ -296,7 +296,7 @@ const Home = () => { width: 360, background: '#111827', position: 'relative', - overflow: 'hidden', + overflow: 'hidden' }} > @@ -305,29 +305,29 @@ const Home = () => {
-
+
- +
- +
- +
@@ -340,13 +340,13 @@ const Home = () => {

React Animate On Scroll.

- +

- +

- +
@@ -355,7 +355,7 @@ const Home = () => { strings: ['Software Developer.', 'Full Stack Developer.', 'Open Source Contributor.'], autoStart: true, loop: true, - deleteSpeed: 50, + deleteSpeed: 50 }} />
@@ -381,18 +381,18 @@ const Home = () => {
*/}
- +
- +
<> - +
Mix Blend Mode
@@ -401,14 +401,14 @@ const Home = () => { - +
- -
+ +
@@ -422,7 +422,7 @@ const Home = () => { height: 200, position: 'relative', backgroundColor: 'rgba(0, 0,0, 0.9)', - borderRadius: 8, + borderRadius: 8 }} >
@@ -439,16 +439,16 @@ const Home = () => {
-

+

@@ -463,16 +463,16 @@ const Home = () => { mask
-
-
-
-
-
+
+
+
+
@@ -495,12 +495,12 @@ const Home = () => {
- - + + { - @@ -551,21 +551,21 @@ const Home = () => {
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -573,7 +573,7 @@ const Home = () => {
- +
{ textAlign: 'center', background: '#aaa', margin: '0 10px', - borderRadius: 8, + borderRadius: 8 // transform: 'rotateX(60deg) rotateY(0deg) rotateZ(45deg)' }} > @@ -591,7 +591,7 @@ const Home = () => {
- +
{ textAlign: 'center', background: '#aaa', margin: '0 10px', - borderRadius: 8, + borderRadius: 8 }} > Vue