Jaime Ramírez
2020-06-11 d4efcf556bee5599b87a18da9420df2143e1c757
commit | author | age
bae328 1 import React from "react";
JR 2 import ShelterList from "../Components/SheltersList";
3 import { ShelterService } from "../Services/ShelterService";
4 import { PageSection, PageSectionVariants, Text, TextContent } from "@patternfly/react-core";
5
6
7 type SheltersViewProps = {
8     shelterService: ShelterService;
9 }
10
11
12 export default class SheltersView extends React.Component<SheltersViewProps> {
13
14     public render() {
15         return (
16             <React.Fragment>
17                 <PageSection variant={PageSectionVariants.light}>
18                     <TextContent>
19                         <Text component="h1">Shelters</Text>
20                         <Text component="p">Our shelters</Text>
21                     </TextContent>
22                 </PageSection>
23                 <PageSection>
9f69d1 24                     <ShelterList shelterService={this.props.shelterService}/>
bae328 25                 </PageSection>
JR 26             </React.Fragment>
27         );
28     }
29
30 }