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
31
32
33
34
35
36
37
38
39
40
41
import React from "react";
import { AnimalService } from "../Services/AnimalService";
import {
    PageSection, PageSectionVariants, Text, TextContent, Card, CardBody
} from "@patternfly/react-core";
import AnimalCreateForm from "../Components/AnimalCreateForm";
import {ShelterService} from "../Services/ShelterService";
 
 
type AnimalCreateViewProps = {
    animalService: AnimalService;
    shelterService: ShelterService;
}
 
 
export default class AnimalCreateView extends React.Component<AnimalCreateViewProps> {
 
    public render() {
        return (
            <React.Fragment>
                <PageSection variant={PageSectionVariants.light}>
                    <TextContent>
                        <Text component="h1">Animal creation</Text>
                        <Text component="p">Use the following form to create a new animal:</Text>
                    </TextContent>
                </PageSection>
                <PageSection>
                    <Card>
                        <CardBody>
                            <AnimalCreateForm
                                animalService={this.props.animalService}
                                shelterService={this.props.shelterService}
                            />
                        </CardBody>
                    </Card>
                </PageSection>
            </React.Fragment>
        );
    }
 
}