feat: melhora estruturas das pastas

This commit is contained in:
Naian Felix dos Santos 2023-01-05 09:38:33 -03:00
parent 986d617e8a
commit b150d46d1b
5 changed files with 13 additions and 26 deletions

View File

@ -32,8 +32,6 @@
color: #c6c6c6;
}
.lupa-img {
height: 18px;
margin: 7px 16px 7px 10px;

View File

@ -1,19 +1,17 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import { Home } from './pages/Home';
import './style/index.css';
import Header from "./components/Header/Header";
import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
<React.StrictMode>
<Header />
<Home />
</React.StrictMode>
);
// 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();

View File

@ -0,0 +1,11 @@
import React from "react";
import Header from "../components/Header/Header";
const Home = () => {
return (
<Header/>
)
}
export {Home};

View File

@ -1,15 +0,0 @@
import { ReportHandler } from 'web-vitals';
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}
};
export default reportWebVitals;

View File

@ -1,5 +0,0 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// 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';