Jaime Ramírez
2020-06-11 d4efcf556bee5599b87a18da9420df2143e1c757
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
import React from "react";
import ShelterList from "../Components/SheltersList";
import { ShelterService } from "../Services/ShelterService";
import { PageSection, PageSectionVariants, Text, TextContent } from "@patternfly/react-core";
 
 
type SheltersViewProps = {
    shelterService: ShelterService;
}
 
 
export default class SheltersView extends React.Component<SheltersViewProps> {
 
    public render() {
        return (
            <React.Fragment>
                <PageSection variant={PageSectionVariants.light}>
                    <TextContent>
                        <Text component="h1">Shelters</Text>
                        <Text component="p">Our shelters</Text>
                    </TextContent>
                </PageSection>
                <PageSection>
                    <ShelterList shelterService={this.props.shelterService}/>
                </PageSection>
            </React.Fragment>
        );
    }
 
}