diff --git a/src/App.js b/src/App.js index b28114c..728c38a 100644 --- a/src/App.js +++ b/src/App.js @@ -46,7 +46,7 @@ function App() { (frameSize - height) / 2, width, height, - ); + ) const pngUrl = offscreenCanvas.toDataURL() setPhoto(pngUrl) @@ -108,4 +108,4 @@ function App() { ) } -export default App; +export default App diff --git a/src/App.test.js b/src/App.test.js index 1f03afe..4741580 100644 --- a/src/App.test.js +++ b/src/App.test.js @@ -1,8 +1,8 @@ -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', () => { - render(); - const linkElement = screen.getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); -}); + render() + const linkElement = screen.getByText(/learn react/i) + expect(linkElement).toBeInTheDocument() +}) diff --git a/src/FrameChooser.js b/src/FrameChooser.js index 8a7d36b..000e0e5 100644 --- a/src/FrameChooser.js +++ b/src/FrameChooser.js @@ -55,4 +55,4 @@ function FrameChooser({onFrameChange}) { ) } -export default FrameChooser; +export default FrameChooser diff --git a/src/index.js b/src/index.js index 7998135..12e0a2a 100644 --- a/src/index.js +++ b/src/index.js @@ -1,16 +1,16 @@ -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; -import reportWebVitals from './reportWebVitals'; +import React from 'react' +import ReactDOM from 'react-dom' +import App from './App' +import reportWebVitals from './reportWebVitals' ReactDOM.render( , document.getElementById('root') -); +) // If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals -reportWebVitals(); +reportWebVitals() diff --git a/src/reportWebVitals.js b/src/reportWebVitals.js index 5253d3a..9381231 100644 --- a/src/reportWebVitals.js +++ b/src/reportWebVitals.js @@ -1,13 +1,13 @@ const reportWebVitals = onPerfEntry => { if (onPerfEntry && onPerfEntry instanceof Function) { import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { - getCLS(onPerfEntry); - getFID(onPerfEntry); - getFCP(onPerfEntry); - getLCP(onPerfEntry); - getTTFB(onPerfEntry); - }); + getCLS(onPerfEntry) + getFID(onPerfEntry) + getFCP(onPerfEntry) + getLCP(onPerfEntry) + getTTFB(onPerfEntry) + }) } -}; +} -export default reportWebVitals; +export default reportWebVitals diff --git a/src/setupTests.js b/src/setupTests.js index 8f2609b..52aaef1 100644 --- a/src/setupTests.js +++ b/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'