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