1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-23 20:07:40 +02:00
unleash.unleash/frontend/src/component/layout/main.jsx
Fredrik Strand Oseberg d11bee0b95 Feature/stale dashboard (#243)
* feat: initial structure

* feat: add reportCard

* feat: add report-toggle-list

* feat: add report-card

* feat: connect data

* feat: add material icons

* feat: add table styles

* fix: rename reportcard

* feat: add checkbox functionality

* fix: correct invalid json format

* feat: add support for changing project

* fix: linting

* fix: remove trailing slash

* fix: change rewrites to routes

* fix: update glob

* feat: add name sorting

* refactor: swap routes for rewrites in vercel.json

* feat: add rewrite rules

* feat: add all rewrite rules

* feat: initial useSort implementation

* feat: finalized useSort for consistent name sorting

* feat: date parsing

* feat: implement sorting functionality for headers

* fix: ensure consistent naming in useSort

* feat: finish reportcard

* fix: remove loader class

* feat: hide bulk actions behind feature flag

* feat: add tests

* fix: lint and proptypes

* fix: lint

* fix: update select styles

* fix: create snapshots from node 12

* fix: safari flex inconsistencies

* feat: expand conditionallyRender functionality to encompass passing functions as elseShow param

* fix: conditional project selector

* fix: add missing new-line

* fix: move dependencies

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-02-25 10:54:53 +01:00

36 lines
1.2 KiB
JavaScript

import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Layout, Content, Footer, Grid, Cell } from 'react-mdl';
import styles from '../styles.module.scss';
import ErrorContainer from '../error/error-container';
import Header from '../menu/header';
import ShowApiDetailsContainer from '../api/show-api-details-container';
import { FooterMenu } from '../menu/footer';
export default class App extends PureComponent {
static propTypes = {
location: PropTypes.object.isRequired,
};
render() {
return (
<Layout fixedHeader>
<Header location={this.props.location} />
<Content className="mdl-color--grey-50">
<Grid noSpacing className={styles.content} style={{ flex: 1 }}>
<Cell col={12}>
{this.props.children}
<ErrorContainer />
</Cell>
</Grid>
<Footer size="mega">
<FooterMenu />
<ShowApiDetailsContainer />
</Footer>
</Content>
</Layout>
);
}
}