2020-09-03 19:25:05 +00:00
|
|
|
import React from "react";
|
2020-08-27 12:09:36 +00:00
|
|
|
import { Page, PageSection, Button } from "@patternfly/react-core";
|
|
|
|
import { Header } from "./PageHeader";
|
|
|
|
import { PageNav } from "./PageNav";
|
2020-08-04 12:59:41 +00:00
|
|
|
|
2020-09-02 07:51:42 +00:00
|
|
|
import { Help } from "./components/help-enabler/HelpHeader";
|
2020-09-03 19:25:05 +00:00
|
|
|
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
|
2020-08-27 12:09:36 +00:00
|
|
|
import { NewRealmForm } from "./forms/realm/NewRealmForm";
|
2020-08-31 18:26:25 +00:00
|
|
|
import { NewClientForm } from "./forms/client/NewClientForm";
|
2020-09-03 19:25:05 +00:00
|
|
|
import { ImportForm } from "./forms/client/ImportForm";
|
|
|
|
import { ClientsPage } from "./page/ClientsPage";
|
2020-08-27 12:09:36 +00:00
|
|
|
|
2020-08-08 13:52:23 +00:00
|
|
|
export const App = () => {
|
2020-08-04 12:59:41 +00:00
|
|
|
return (
|
2020-08-27 12:09:36 +00:00
|
|
|
<Router>
|
2020-09-02 07:51:42 +00:00
|
|
|
<Help>
|
|
|
|
<Page header={<Header />} isManagedSidebar sidebar={<PageNav />}>
|
|
|
|
<PageSection variant="light">
|
|
|
|
<Switch>
|
|
|
|
<Route exact path="/add-realm" component={NewRealmForm}></Route>
|
|
|
|
<Route exact path="/add-client" component={NewClientForm}></Route>
|
2020-09-03 19:25:05 +00:00
|
|
|
<Route exact path="/import-client" component={ImportForm}></Route>
|
|
|
|
<Route exact path="/" component={ClientsPage}></Route>
|
2020-09-02 07:51:42 +00:00
|
|
|
</Switch>
|
|
|
|
</PageSection>
|
|
|
|
</Page>
|
|
|
|
</Help>
|
2020-08-27 12:09:36 +00:00
|
|
|
</Router>
|
2020-08-04 12:59:41 +00:00
|
|
|
);
|
|
|
|
};
|