Skip to content

Commit

Permalink
Merge pull request #201 from GSG-G8/199-opened-dashbar
Browse files Browse the repository at this point in the history
fixed opened application page
  • Loading branch information
Asmaathabet authored Jun 10, 2020
2 parents 76726f3 + 70aea8a commit 2087635
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions client/src/components/pages/admin/Opened/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { Helmet } from 'react-helmet';
import axios from 'axios';
import { Link } from 'react-router-dom';
import backGround from '../../../../assets/images/backgroundDash.svg';
import DashBar from '../../../dashboard/Tabs';
import Limitaion from '../../../common/limitation';

import './index.css';

Expand Down Expand Up @@ -90,30 +88,23 @@ const Opened = () => {
<Helmet>
<title>Opened Applications</title>
</Helmet>
<DashBar />
<img src={backGround} alt="backGround" className="dash__background" />
<div className="dashboard__page">
<div className="submitted__container">
{!opened ? (
<div className="loading-spinner">
<Limitaion />
</div>
) : (
<MaterialTable
className="submitted__table"
title="Opened Applications"
columns={Header.columns}
data={opened}
options={{
exportButton: true,
pageSizeOptions: [
5,
10,
!opened ? 15 : opened.length > 10 ? opened.length : 15,
],
}}
/>
)}
<MaterialTable
className="submitted__table"
title="Opened Applications"
columns={Header.columns}
data={opened}
options={{
exportButton: true,
pageSizeOptions: [
5,
10,
!opened ? 15 : opened.length > 10 ? opened.length : 15,
],
}}
/>
</div>
</div>
</>
Expand Down

0 comments on commit 2087635

Please sign in to comment.