-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from buildingu/feat-add-reviewer-functionality
Update: app functionality
- Loading branch information
Showing
17 changed files
with
111 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"Mentors":[ | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,39 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
import Sidebar from '../components/Sidebar'; | ||
import { Routes, Route, useLocation } from 'react-router-dom'; | ||
import { IconFilePlus, IconClipboardText, IconUser } from '@tabler/icons-react'; | ||
|
||
import FeedbackRequestForm from "../Pages/FeedbackrequestForm" | ||
import { Stack, rem, Tooltip } from "@mantine/core"; | ||
import { IconFilePlus, IconClipboardText, IconUser, IconListDetails, IconLogout } from '@tabler/icons-react'; | ||
import FeedbackRequestForm from "../Pages/FeedbackrequestForm"; | ||
import FeedbackRequestQueue from '../Pages/FeedbackQueue'; | ||
import CreatedRequests from '../Pages/CreatedRequests'; | ||
import Account from '../Pages/Account/'; | ||
import TopBar from '../components/TopBar'; | ||
|
||
function Interndashboard(props) { | ||
const navItems = [ | ||
{ icon: IconFilePlus, label: 'Create Feedback request', to: 'requestform' }, | ||
{ icon: IconListDetails, label: 'Feedback Queue', to: 'feedbackqueue' }, | ||
{ icon: IconClipboardText, label: 'Feedback Requests', to: 'myrequests' }, | ||
{ icon: IconUser, label: 'Account', to: 'account' }, | ||
{ icon: IconLogout, label: 'Logout', to: 'logout' } | ||
]; | ||
|
||
const location = useLocation(); | ||
|
||
return ( | ||
<div style={{ display: 'flex', flexDirection: 'column-reverse' }}> | ||
<TopBar user={props.user} /> | ||
<div style={{ display: 'flex'}}> | ||
<Sidebar navItems={navItems} /> | ||
<Routes location={location}> | ||
<Route path="/requestform" element={<FeedbackRequestForm active={0} user={props.user}/>} /> | ||
<Route path="/myrequests" element={<CreatedRequests active={1} user={props.user}/>} /> | ||
<Route path="/account" element={<Account active={2} user={props.user} />} /> | ||
</Routes> | ||
</div> | ||
) | ||
<div style={{ flex: 1, marginLeft: rem(1) }}> | ||
<TopBar user={props.user} /> | ||
<Routes location={location}> | ||
<Route path="/feedbackqueue" element={<FeedbackRequestQueue active={0} user={props.user} />} /> | ||
<Route path="/requestform" element={<FeedbackRequestForm active={0} user={props.user}/>} /> | ||
<Route path="/myrequests" element={<CreatedRequests active={1} user={props.user}/>} /> | ||
<Route path="/account" element={<Account active={2} user={props.user} />} /> | ||
</Routes> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Interndashboard | ||
export default Interndashboard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.