Skip to content

Commit

Permalink
Official tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexagod committed Sep 25, 2020
1 parent 7da1eab commit fdaedb2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/Components/ClippedDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ const ClippedDrawer = withWebId((props) => {
icon: availableViews.help.icon,
className: "active",
eventHandler: function(e) { setSelectedView(availableViews.help)}
},
official: {
label: availableViews.official.label,
icon: availableViews.official.icon,
className: "active",
eventHandler: function(e) { setSelectedView(availableViews.official)}
}
}

Expand Down Expand Up @@ -166,6 +172,16 @@ const ClippedDrawer = withWebId((props) => {
))}
</List>
<Divider />
<br />
<br />
<Divider />
{[sidebarItems.official].map((item, index) => (
<ListItem button={true} className={item.classNane} button key={item.label} onClick={item.eventHandler}>
<ListItemIcon>{item.icon}</ListItemIcon>
<ListItemText primary={item.label} />
</ListItem>
))}
<Divider />
</div>
</Drawer>
<main className={classes.content}>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/MarriageViewComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ const MarriageViewComponent = (props) => {
}

export default MarriageViewComponent
//onClick={() => viewMarriage(contract)}
//onClick={() => viewMarriage(contract)}
8 changes: 8 additions & 0 deletions src/Components/OfficialComponent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React, { useState, useEffect } from 'react'

const OfficialComponent = (props) => {
return (<div />)

}

export default OfficialComponent
3 changes: 3 additions & 0 deletions src/util/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import RequestsViewerComponent from '../Components/RequestsViewerComponent'
import HelpComponent from '../Components/HelpComponent'
import MarriageRequestComponent from '../Components/MarriageRequestComponent'
import MarriageViewComponent from '../Components/MarriageViewComponent'
import OfficialComponent from '../Components/OfficialComponent'
import { getFile } from './FileUtil'

import PersonIcon from '@material-ui/icons/Person';
Expand All @@ -17,6 +18,7 @@ import HelpIcon from '@material-ui/icons/Help';
import InsertDriveFileIcon from '@material-ui/icons/InsertDriveFile';
import CardMembershipIcon from '@material-ui/icons/CardMembership';
import ListIcon from '@material-ui/icons/List';
import GavelIcon from '@material-ui/icons/Gavel';

import createnamespaces from "../util/NameSpaces"
const ns = createnamespaces()
Expand All @@ -39,6 +41,7 @@ export const availableViews = {
certificates: {id:"certificates", label:'Certificates', generation:(props) => <CertificatesViewerComponent {...props}></CertificatesViewerComponent>, icon: <CardMembershipIcon />},
notifications: {id:"notifications", label:'Notifications', generation:(props) => <NotificationsViewerComponent {...props}></NotificationsViewerComponent>, icon: <NotificationsIcon />},
help: {id:"help", label:'Help', generation:(props) => <HelpComponent {...props}></HelpComponent>, icon: <HelpIcon />},
official: {id:"official", label:'Offical', generation:(props) => <OfficialComponent {...props}></OfficialComponent>, icon: <GavelIcon />},
}

export async function getStore(URI){
Expand Down

0 comments on commit fdaedb2

Please sign in to comment.