parent
9e1bf59f43
commit
8d28512fbf
@ -1,17 +0,0 @@
|
|||||||
import { ThemeProvider, createGlobalStyle } from 'styled-components';
|
|
||||||
import { theme } from './styles/theme.js'
|
|
||||||
import NavBar from './components/NavBar'
|
|
||||||
|
|
||||||
import './App.css';
|
|
||||||
|
|
||||||
function App() {
|
|
||||||
return (
|
|
||||||
<div className="App">
|
|
||||||
<ThemeProvider theme={theme}>
|
|
||||||
<NavBar/>
|
|
||||||
</ThemeProvider>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default App;
|
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
import NavBar from './components/NavBar'
|
||||||
|
|
||||||
|
export default function Main() {
|
||||||
|
return (
|
||||||
|
<NavBar />
|
||||||
|
)
|
||||||
|
}
|
||||||
@ -1,17 +1,28 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom/client';
|
import ReactDOM from 'react-dom';
|
||||||
import './index.css';
|
|
||||||
import App from './App';
|
|
||||||
import reportWebVitals from './utils/reportWebVitals';
|
import reportWebVitals from './utils/reportWebVitals';
|
||||||
|
import { ThemeProvider, createGlobalStyle } from 'styled-components';
|
||||||
|
import { theme } from './assets/theme.js'
|
||||||
|
import './styles.css';
|
||||||
|
|
||||||
const root = ReactDOM.createRoot(document.getElementById('root'));
|
import Main from './Main.js'
|
||||||
root.render(
|
|
||||||
<React.StrictMode>
|
function App() {
|
||||||
<App />
|
return (
|
||||||
</React.StrictMode>
|
<React.StrictMode>
|
||||||
);
|
<div className="App">
|
||||||
|
<ThemeProvider theme={theme}>
|
||||||
|
<Main/>
|
||||||
|
</ThemeProvider>
|
||||||
|
</div>
|
||||||
|
</React.StrictMode>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// If you want to start measuring performance in your app, pass a function
|
// If you want to start measuring performance in your app, pass a function
|
||||||
// to log results (for example: reportWebVitals(console.log))
|
// to log results (for example: reportWebVitals(console.log))
|
||||||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
||||||
reportWebVitals();
|
reportWebVitals();
|
||||||
|
|
||||||
|
const rootElement = document.getElementById("root");
|
||||||
|
ReactDOM.render(<App />, rootElement);
|
||||||
Loading…
Reference in new issue