Skip to content

Commit

Permalink
added ability to export to excel
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebones committed Mar 21, 2021
1 parent 4c49a35 commit 57fcc76
Show file tree
Hide file tree
Showing 11 changed files with 568 additions and 26 deletions.
111 changes: 111 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"classnames": "^2.2.6",
"crypto-js": "^4.0.0",
"date-and-time": "^0.14.2",
"file-saver": "^2.0.5",
"graphql": "^15.5.0",
"graphql-iso-date": "^3.6.1",
"html2canvas": "^1.0.0-rc.7",
Expand All @@ -31,7 +32,8 @@
"recoil": "^0.1.3",
"store": "^2.0.12",
"styled-components": "^5.2.1",
"underscore": "^1.12.0"
"underscore": "^1.12.0",
"xlsx": "^0.16.9"
},
"proxy": "http://localhost:8000/",
"scripts": {
Expand Down
12 changes: 11 additions & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import state from "./applicationState";
import EditHostelDetails from "./components/editHostelDetails";
import SendMessageToStudent from "./components/sendMessageToStudents";
import CustomNavbar from "./components/common/customNavbar";

import AdminViewTransaction from "./components/adminViewTransaction"
import GlobalStyle from "./globalStyles";
/**
imports of page components ends here
Expand Down Expand Up @@ -255,6 +255,16 @@ const App = (props) => {
component={StudentAccountCreation}
/>
{/* Admin routes from here */}
<AuthorizedComponent
path="/admin/view_transactions"
exact
component={AdminViewTransaction}
authenticated={authenticated}
currentUser={currentUser}
authorizedRole={["super-admin"]}
{...props}
/>

<AuthorizedComponent
path="/admin/dashboard"
exact
Expand Down
Loading

0 comments on commit 57fcc76

Please sign in to comment.