Skip to content

Commit

Permalink
run prettier on files that need it
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrews committed Mar 31, 2023
1 parent f959622 commit 1847e5b
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 36 deletions.
6 changes: 3 additions & 3 deletions web/src/App.test.js
Original file line number Diff line number Diff line change
@@ -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(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
Expand Down
4 changes: 2 additions & 2 deletions web/src/LogViewer.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.LogViewer {
background-color: #020202;
color: #e7e7e7;
background-color: #020202;
color: #e7e7e7;
}
2 changes: 1 addition & 1 deletion web/src/MainLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const MainLayout = (props) => {
const handleLogSelection = (event, newLogFile) => {
setSelectedLogFile(newLogFile);
};

// TODO: on first load select the first tab
return (
<Container
disableGutters
Expand Down
10 changes: 5 additions & 5 deletions web/src/index.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
margin: 0;
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;
-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;
}
43 changes: 21 additions & 22 deletions web/src/index.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
// import reportWebVitals from './reportWebVitals';

import { ThemeProvider, createTheme } from '@mui/material/styles';
import CssBaseline from '@mui/material/CssBaseline';
import { createTheme, ThemeProvider } from "@mui/material/styles";
import CssBaseline from "@mui/material/CssBaseline";

const darkTheme = createTheme({
palette: {
mode: 'dark',
primary: {
main: '#00ff78',
contrastText: '#ffffff'
},
secondary: {
main: '#73bcf7',
contrastText: '#ffffff'
}
palette: {
mode: "dark",
primary: {
main: "#00ff78",
contrastText: "#ffffff",
},
secondary: {
main: "#73bcf7",
contrastText: "#ffffff",
},
},
});

ReactDOM.render(
<React.StrictMode>
<ThemeProvider theme={darkTheme}>
<CssBaseline />
<App />
</ThemeProvider>
<ThemeProvider theme={darkTheme}>
<CssBaseline />
<App />
</ThemeProvider>
</React.StrictMode>,
document.getElementById('root')
document.getElementById("root")
);

// If you want to start measuring performance in your app, pass a function
Expand Down
4 changes: 2 additions & 2 deletions web/src/reportWebVitals.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion web/src/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

0 comments on commit 1847e5b

Please sign in to comment.