added missing section

This commit is contained in:
Erik Jan de Wit 2020-08-06 11:43:33 +02:00
parent d6f2a014bf
commit 192d891e4f

View file

@ -4,7 +4,7 @@ import { ClientList } from './clients/ClientList';
import { DataLoader } from './components/data-loader/DataLoader'; import { DataLoader } from './components/data-loader/DataLoader';
import { HttpClientContext } from './http-service/HttpClientContext'; import { HttpClientContext } from './http-service/HttpClientContext';
import { Client } from './clients/client-model'; import { Client } from './clients/client-model';
import { Page } from '@patternfly/react-core'; import { Page, PageSection } from '@patternfly/react-core';
import { Header } from './PageHeader'; import { Header } from './PageHeader';
import { PageNav } from './PageNav'; import { PageNav } from './PageNav';
@ -18,9 +18,11 @@ export const App = () => {
}; };
return ( return (
<Page header={<Header />} sidebar={<PageNav />}> <Page header={<Header />} sidebar={<PageNav />}>
<DataLoader loader={loader}> <PageSection>
{(clients) => <ClientList clients={clients} />} <DataLoader loader={loader}>
</DataLoader> {(clients) => <ClientList clients={clients} />}
</DataLoader>
</PageSection>
</Page> </Page>
); );
}; };