Skip to content

Commit

Permalink
Merge pull request #50 from mcode/settings-page
Browse files Browse the repository at this point in the history
Adding settings page
  • Loading branch information
dmendelowitz authored Jun 20, 2023
2 parents adb0e79 + a4210ec commit cd57d8c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ export default function Sidebar() {
<Icon icon="fluent:database-20-filled" height="24" className="ml-2" />
<p className={`${open ? 'pl-2' : 'hidden'}`}>mCODE Coverage</p>
</Link>
<Link
to="/settings"
className={`flex flex-row py-2 rounded-sidebarButton ${
useLocation().pathname === '/settings' ? 'shadow-sidebarButton' : ''
}`}
>
<Icon icon="material-symbols:settings" height="24" className="ml-2" />
<p className={`${open ? 'pl-2' : 'hidden'}`}>Settings</p>
</Link>
</div>
{/* lower section */}
<div className="flex flex-col gap-5">
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { RecoilRoot } from 'recoil';
import App from './pages/App';
import FileUploadPage from './pages/FileUploadPage';
import Settings from './pages/Settings';
import reportWebVitals from './reportWebVitals';
import PageWrapper from './components/PageWrapper';
import './index.css';
Expand All @@ -13,6 +14,7 @@ ReactDOM.render(
<Router basename="mcode-coverage-checker">
<PageWrapper>
<Routes>
<Route path="/settings" element={<Settings />} />
<Route path="/file-upload" element={<FileUploadPage />} />
<Route path="/" element={<App />} />
</Routes>
Expand Down
14 changes: 14 additions & 0 deletions src/pages/Settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function Settings() {
return (
<div className="max-w-7xl w-full">
<h1 className="font-sans font-bold text-4xl">Settings</h1>
<hr className="m-2 h-px bg-gray-300 border-0" />
<h2 className="pt-2 font-sans text-3xl font-semibold">Manage Your mCODE Resources</h2>
<p className="text-sm text-gray-600 pb-2">
Select which resources you want to be included in the dashboard calculation
</p>
</div>
);
}

export default Settings;

0 comments on commit cd57d8c

Please sign in to comment.