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
import React from "react";
import { PageSection, PageSectionVariants, TextContent, Text } from "@patternfly/react-core";
import { NewsService } from "../Services/NewsService";
import NewsBoard from "../Components/NewsBoard";
 
 
type NewsViewProps = {
    newsService: NewsService;
}
 
 
export default class NewsView extends React.Component<NewsViewProps> {
 
    public render() {
 
        return (
            <React.Fragment>
                <PageSection variant={PageSectionVariants.light}>
                    <TextContent>
                        <Text component="h1">Animal News</Text>
                        <Text component="p">
                            Latest animal news!
                        </Text>
                    </TextContent>
                </PageSection>
                <PageSection>
                    <NewsBoard newsService={this.props.newsService}></NewsBoard>
                </PageSection>
            </React.Fragment>
        );
    }
 
}