-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMenu.js
More file actions
67 lines (45 loc) · 2.19 KB
/
Menu.js
File metadata and controls
67 lines (45 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
"use strict";
import React from 'react';
import { IndexLink } from 'react-router';
var Uris = require('./Uris');
var auth = require('./AuthService');
class Menu extends React.Component {
constructor(props) {
super(props);
}
render() {
var $this = this;
return (
<div className="list-group">
{
auth.currentUser().username != "admin" ? null : (
<IndexLink to={Uris.PRODUCT.CREATE} activeClassName="active"
className="list-group-item">Create Product</IndexLink>
)
}
<IndexLink to={Uris.DASHBOARD} activeClassName="active"
className="list-group-item">Total Sales By Date</IndexLink>
<IndexLink to={Uris.PRODUCT.BASE} activeClassName="active"
className="list-group-item">View Products</IndexLink>
<IndexLink to={Uris.SELL.CREATE} activeClassName="active"
className="list-group-item">Make Sale</IndexLink>
<IndexLink to={Uris.parameterize(Uris.SELL.BASE, {tab: 1})} activeClassName="active"
className="list-group-item">View Sales</IndexLink>
<IndexLink to={Uris.USER.BASE} activeClassName="active"
className="list-group-item">View Users</IndexLink>
<IndexLink to={Uris.INVENTORY.BASE} activeClassName="active"
className="list-group-item">View Inventories</IndexLink>
<IndexLink to={Uris.UNIT.BASE} activeClassName="active"
className="list-group-item">View Units</IndexLink>
<IndexLink to={Uris.SELL_INVENTORY_TRACK.CREATE} activeClassName="active"
className="list-group-item">Create Sell Inventory Relation</IndexLink>
<IndexLink to={Uris.SELL_INVENTORY_TRACK.BASE} activeClassName="active"
className="list-group-item">Sell Inventory Relations</IndexLink>
</div>
);
}
}
Menu.defaultProps = {
onClick: null,
};
module.exports = Menu;