-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathadmin.js
More file actions
69 lines (67 loc) · 1.57 KB
/
admin.js
File metadata and controls
69 lines (67 loc) · 1.57 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
68
69
import { Box } from '../../../../src/components/box';
import I18n from 'i18n-js';
const Admin = ({ visitors, members, list, create, renew, download, daysLeft }) => (
<div>
<Box title={I18n.t('Current month')}>
<div class="info">
<span>
<b>{I18n.t('Members')}: </b>
<span>{members}</span>
<b style={{ marginLeft: 30, marginRight: 10 }}>
<span>{daysLeft} </span>
<span>{I18n.t('days left')} </span>
</b>
<br />
</span>
<span>
<b>{I18n.t('Visitors')}: </b>
<span>{visitors}</span>
<br />
</span>
</div>
<button class="button green block" onClick={list}>
{I18n.t('Show all vouchers')}
</button>
</Box>
{/* <Box title={I18n.t('Last month')}>
<div class="info">
<span>
<b>{I18n.t('Members')}: </b>
<span>30</span>
<br />
</span>
<span>
<b>{I18n.t('Visitors')}: </b>
<span>18</span>
<br />
</span>
</div>
<button class="button green block" onClick={download}>
{I18n.t('Download CSV')}
</button>
</Box> */}
{/* WIP: Node election */}
{/* <Box title={I18n.t('Admins elegidos')}>
<div class="info">
<span>
<b>Nodo-1, Nodo-2</b>
</span>
<br />
</div>
<button
style={{ marginTop: 15 }}
class="button green block"
onClick={elect}
>
{I18n.t('Elegir')}
</button>
</Box> */}
<button class="button green block button-one" onClick={create}>
{I18n.t('Create')}
</button>
<button class="button green block" onClick={renew}>
{I18n.t('Renew member vouchers')}
</button>
</div>
);
export default Admin;