From dda29ac15c668cfa18726124335ac264eb424c22 Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Mon, 7 Jul 2025 22:36:14 +0200 Subject: [PATCH] reformatted code --- client/public/manifest.json | 2 +- client/src/App.js | 4 ++-- client/src/App.test.js | 6 +++--- client/src/index.css | 6 +++--- client/src/index.js | 12 ++++++------ client/src/reportWebVitals.js | 4 ++-- client/src/setupTests.js | 2 +- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/client/public/manifest.json b/client/public/manifest.json index 080d6c7..fc7ce89 100644 --- a/client/public/manifest.json +++ b/client/public/manifest.json @@ -22,4 +22,4 @@ "display": "standalone", "theme_color": "#000000", "background_color": "#ffffff" -} +} \ No newline at end of file diff --git a/client/src/App.js b/client/src/App.js index 3784575..e9f34aa 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -1,5 +1,5 @@ -import logo from './logo.svg'; -import './App.css'; +import logo from "./logo.svg"; +import "./App.css"; function App() { return ( diff --git a/client/src/App.test.js b/client/src/App.test.js index 1f03afe..9382b9a 100644 --- a/client/src/App.test.js +++ b/client/src/App.test.js @@ -1,7 +1,7 @@ -import { render, screen } from '@testing-library/react'; -import App from './App'; +import { render, screen } from "@testing-library/react"; +import App from "./App"; -test('renders learn react link', () => { +test("renders learn react link", () => { render(); const linkElement = screen.getByText(/learn react/i); expect(linkElement).toBeInTheDocument(); diff --git a/client/src/index.css b/client/src/index.css index ec2585e..4a1df4d 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -1,13 +1,13 @@ body { margin: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", + "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', + font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace; } diff --git a/client/src/index.js b/client/src/index.js index d563c0f..770ee7d 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -1,10 +1,10 @@ -import React from 'react'; -import ReactDOM from 'react-dom/client'; -import './index.css'; -import App from './App'; -import reportWebVitals from './reportWebVitals'; +import React from "react"; +import ReactDOM from "react-dom/client"; +import "./index.css"; +import App from "./App"; +import reportWebVitals from "./reportWebVitals"; -const root = ReactDOM.createRoot(document.getElementById('root')); +const root = ReactDOM.createRoot(document.getElementById("root")); root.render( diff --git a/client/src/reportWebVitals.js b/client/src/reportWebVitals.js index 5253d3a..9ecd33f 100644 --- a/client/src/reportWebVitals.js +++ b/client/src/reportWebVitals.js @@ -1,6 +1,6 @@ -const reportWebVitals = onPerfEntry => { +const reportWebVitals = (onPerfEntry) => { if (onPerfEntry && onPerfEntry instanceof Function) { - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { + import("web-vitals").then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { getCLS(onPerfEntry); getFID(onPerfEntry); getFCP(onPerfEntry); diff --git a/client/src/setupTests.js b/client/src/setupTests.js index 8f2609b..1dd407a 100644 --- a/client/src/setupTests.js +++ b/client/src/setupTests.js @@ -2,4 +2,4 @@ // allows you to do things like: // expect(element).toHaveTextContent(/react/i) // learn more: https://github.com/testing-library/jest-dom -import '@testing-library/jest-dom'; +import "@testing-library/jest-dom";