From 98edf1a713656c1e3850c1a5b9526a03c8d9e3a0 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 16 Nov 2023 16:16:25 +0000 Subject: [PATCH] style: format code with Prettier and StandardJS This commit fixes the style issues introduced in 9636d32 according to the output from Prettier and StandardJS. Details: None --- src/App.tsx | 7 +- src/components/About/About.tsx | 2 +- src/components/ContactMe.tsx | 5 +- src/components/Home/AboutSummary.tsx | 5 +- src/components/Home/Home.tsx | 4 +- src/components/Pre.tsx | 2 +- .../R\303\251sum\303\251.tsx" | 82 +++++++++++-------- src/components/ScrollToTop.tsx | 4 +- src/index.js | 4 +- 9 files changed, 64 insertions(+), 51 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 8335b17a..413c588d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,12 +3,7 @@ import "./App.scss"; import "bootstrap/dist/css/bootstrap.min.css"; import "aos/dist/aos.css"; -import { - HashRouter, - Navigate, - Route, - Routes, -} from "react-router-dom"; +import { HashRouter, Navigate, Route, Routes } from "react-router-dom"; import React, { lazy, Suspense, useEffect, useState } from "react"; import About from "./components/About/About"; diff --git a/src/components/About/About.tsx b/src/components/About/About.tsx index 49e6eda1..15666794 100644 --- a/src/components/About/About.tsx +++ b/src/components/About/About.tsx @@ -21,7 +21,7 @@ function About() { }, (error) => { console.log(error); - } + }, ); return ( diff --git a/src/components/ContactMe.tsx b/src/components/ContactMe.tsx index 95f3dc78..14dabb3d 100644 --- a/src/components/ContactMe.tsx +++ b/src/components/ContactMe.tsx @@ -55,7 +55,10 @@ function ContactMe() { -

+

CONTACT ME

diff --git a/src/components/Home/AboutSummary.tsx b/src/components/Home/AboutSummary.tsx index 3035212f..2520539c 100644 --- a/src/components/Home/AboutSummary.tsx +++ b/src/components/Home/AboutSummary.tsx @@ -21,7 +21,10 @@ function aboutSummary() { -

+

MORE ABOUT ME

diff --git a/src/components/Home/Home.tsx b/src/components/Home/Home.tsx index 425460f9..15261a85 100644 --- a/src/components/Home/Home.tsx +++ b/src/components/Home/Home.tsx @@ -45,9 +45,7 @@ function Home() {

- - Software Engineer for - + Software Engineer for
diff --git a/src/components/Pre.tsx b/src/components/Pre.tsx index 5b39de5b..692783f3 100644 --- a/src/components/Pre.tsx +++ b/src/components/Pre.tsx @@ -1,7 +1,7 @@ import React from "react"; interface Props { - load: boolean + load: boolean; } function Pre(props: Props) { diff --git "a/src/components/R\303\251sum\303\251/R\303\251sum\303\251.tsx" "b/src/components/R\303\251sum\303\251/R\303\251sum\303\251.tsx" index 6d09c306..cd345e3b 100644 --- "a/src/components/R\303\251sum\303\251/R\303\251sum\303\251.tsx" +++ "b/src/components/R\303\251sum\303\251/R\303\251sum\303\251.tsx" @@ -1,71 +1,85 @@ -import React, {useEffect, useState} from 'react' -import {Container, Row} from 'react-bootstrap' -import Button from 'react-bootstrap/Button' +import React, { useEffect, useState } from "react"; +import { Container, Row } from "react-bootstrap"; +import Button from "react-bootstrap/Button"; // @ts-ignore -import pdf_de from '../../Assets/../Assets/Résumé_de_Jakob_Rössner.pdf' +import pdf_de from "../../Assets/../Assets/Résumé_de_Jakob_Rössner.pdf"; // @ts-ignore -import pdf_en from '../../Assets/../Assets/Résumé_en_Jakob_Rössner.pdf' -import {AiOutlineDownload} from 'react-icons/ai' -import {Document, Page, pdfjs} from 'react-pdf' -import 'react-pdf/dist/esm/Page/AnnotationLayer.css' -import 'react-pdf/dist/esm/Page/TextLayer.css'; +import pdf_en from "../../Assets/../Assets/Résumé_en_Jakob_Rössner.pdf"; +import { AiOutlineDownload } from "react-icons/ai"; +import { Document, Page, pdfjs } from "react-pdf"; +import "react-pdf/dist/esm/Page/AnnotationLayer.css"; +import "react-pdf/dist/esm/Page/TextLayer.css"; pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`; -function ResumeNew () { +function ResumeNew() { const [width, setWidth] = useState(1200); useEffect(() => { - setWidth(window.innerWidth) + setWidth(window.innerWidth); }, []); return (
- - -

- German Résumé + + +

+ German Résumé

- - 786 ? 1.7 : 0.6} /> + + 786 ? 1.7 : 0.6} + />
- + - -

- English Résumé + +

+ English Résumé

- - 786 ? 1.7 : 0.6} /> + + 786 ? 1.7 : 0.6} + />
- +

- ) + ); } -export default ResumeNew +export default ResumeNew; diff --git a/src/components/ScrollToTop.tsx b/src/components/ScrollToTop.tsx index 150b1d3f..e7c97d5a 100644 --- a/src/components/ScrollToTop.tsx +++ b/src/components/ScrollToTop.tsx @@ -1,5 +1,5 @@ -import {useEffect} from "react"; -import {useLocation} from "react-router-dom"; +import { useEffect } from "react"; +import { useLocation } from "react-router-dom"; function ScrollToTop() { const { pathname } = useLocation(); diff --git a/src/index.js b/src/index.js index b4ebc1bc..36ae2ec9 100644 --- a/src/index.js +++ b/src/index.js @@ -3,14 +3,14 @@ import ReactDOM from "react-dom"; import "./index.css"; import App from "./App"; import reportWebVitals from "./reportWebVitals"; -import {Analytics} from "@vercel/analytics/react"; +import { Analytics } from "@vercel/analytics/react"; ReactDOM.render( , - document.getElementById("root") + document.getElementById("root"), ); // If you want to start measuring performance in your app, pass a function