diff options
Diffstat (limited to 'src/App.js')
-rw-r--r-- | src/App.js | 48 |
1 files changed, 29 insertions, 19 deletions
@@ -1,24 +1,34 @@ -import logo from './logo.svg'; -import './App.css'; +/* OpenBills-web - Web based libre billing software + * Copyright (C) 2022 Vidhu Kant Sharma <vidhukant@vidhukant.xyz> -function App() { + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +import './App.scss'; +import { BrowserRouter, Route, Routes } from "react-router-dom"; +import ManageItemsPage from './views/manage/items'; + +const App = () => { return ( - <div className="App"> - <header className="App-header"> - <img src={logo} className="App-logo" alt="logo" /> - <p> - Edit <code>src/App.js</code> and save to reload. - </p> - <a - className="App-link" - href="https://reactjs.org" - target="_blank" - rel="noopener noreferrer" - > - Learn React - </a> - </header> - </div> + <BrowserRouter> + <main> + <Routes> + <Route exact path="/manage/items" element={<ManageItemsPage/>}/> + <Route path="*" element={<h1>404</h1>}/> + </Routes> + </main> + </BrowserRouter> ); } |