mirror of
https://github.com/gabehf/BudgetBuddy.git
synced 2026-03-08 23:18:15 -07: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() {
|
function VerticalAppBar() {
|
||||||
return(
|
return(
|
||||||
Toolbar
|
AppBar(
|
||||||
|
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
29
src/index.js
29
src/index.js
|
|
@ -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…
Add table
Add a link
Reference in a new issue