mirror of
https://github.com/gabehf/BudgetBuddy.git
synced 2026-03-07 21:48:14 -08:00
Reorganize File Structure
This commit is contained in:
parent
9e1bf59f43
commit
8d28512fbf
7 changed files with 30 additions and 27 deletions
17
src/App.js
17
src/App.js
|
|
@ -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;
|
||||
7
src/Main.js
Normal file
7
src/Main.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import NavBar from './components/NavBar'
|
||||
|
||||
export default function Main() {
|
||||
return (
|
||||
<NavBar />
|
||||
)
|
||||
}
|
||||
|
|
@ -2,6 +2,8 @@ import { Toolbar } from "@material-ui/core";
|
|||
|
||||
function VerticalAppBar() {
|
||||
return(
|
||||
Toolbar
|
||||
AppBar(
|
||||
|
||||
)
|
||||
);
|
||||
}
|
||||
29
src/index.js
29
src/index.js
|
|
@ -1,17 +1,28 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
import ReactDOM from 'react-dom';
|
||||
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'));
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>
|
||||
);
|
||||
import Main from './Main.js'
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<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
|
||||
// to log results (for example: reportWebVitals(console.log))
|
||||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
||||
reportWebVitals();
|
||||
|
||||
const rootElement = document.getElementById("root");
|
||||
ReactDOM.render(<App />, rootElement);
|
||||
Loading…
Add table
Add a link
Reference in a new issue