Skip to content
Snippets Groups Projects
Select Git revision
  • 51e6b8887bac4bd5b7ad2285062133cdca999d91
  • develop default
  • master protected
  • feature/frontend-tests
  • 0.106
  • 0.105
  • 0.104
  • 0.103
  • 0.102
  • 0.101
  • 0.100
  • 0.99
  • 0.98
  • 0.97
  • 0.96
  • 0.95
  • 0.94
  • 0.93
  • 0.92
  • 0.91
  • 0.90
  • 0.89
  • 0.88
  • 0.87
24 results

DataPage.tsx

Blame
  • DataPage.tsx 1.07 KiB
    import React, { ReactElement } from "react";
    import { Container, Row, Col } from "react-bootstrap";
    import OrganizationSidebar from "./OrganizationSidebar";
    import PageHeader from "../components/global/PageHeader"
    import SectionLink from "../components/global/SectionLink";
    
    interface inputProps {
        title: string,
        filter: ReactElement,
        children: ReactElement
    }
    
    function DataPage({ title, filter, children }: inputProps): ReactElement {
        return (
            <>
                <OrganizationSidebar />
                <PageHeader type={'data'} header={'Compendium Data'}>
                    <SectionLink section={"Reports"} />
                </PageHeader>
                <Container className="grow">
                    <Col xs={9}>
                        <Row>
                            <h3 className="m-4">{title}</h3>
                        </Row>
                        <Row>
                            {filter}
                        </Row>
                        <Row>
                            {children}
                        </Row>
                    </Col>
                </Container>
            </>
        );
    }
    
    export default DataPage;