commit | author | age
|
bae328
|
1 |
import React from "react"; |
JR |
2 |
import ShelterCreateForm from "../Components/ShelterCreateForm"; |
|
3 |
import { ShelterService } from "../Services/ShelterService"; |
|
4 |
import { |
|
5 |
PageSection, PageSectionVariants, Text, TextContent, Card, CardBody |
|
6 |
} from "@patternfly/react-core"; |
|
7 |
|
|
8 |
|
|
9 |
type SheltersCreateViewProps = { |
|
10 |
shelterService: ShelterService; |
|
11 |
} |
|
12 |
|
|
13 |
|
|
14 |
export default class SheltersCreateView extends React.Component<SheltersCreateViewProps> { |
|
15 |
|
|
16 |
public render() { |
|
17 |
return ( |
|
18 |
<React.Fragment> |
|
19 |
<PageSection variant={PageSectionVariants.light}> |
|
20 |
<TextContent> |
|
21 |
<Text component="h1">Create a Shelter</Text> |
|
22 |
<Text component="p">Use the following form to create a new shelter:</Text> |
|
23 |
</TextContent> |
|
24 |
</PageSection> |
|
25 |
<PageSection> |
|
26 |
<Card> |
|
27 |
<CardBody> |
|
28 |
<ShelterCreateForm shelterService={this.props.shelterService} /> |
|
29 |
</CardBody> |
|
30 |
</Card> |
|
31 |
</PageSection> |
|
32 |
</React.Fragment> |
|
33 |
); |
|
34 |
} |
|
35 |
|
|
36 |
} |