forked from opens3/console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPolicies.tsx
More file actions
23 lines (18 loc) · 758 Bytes
/
Policies.tsx
File metadata and controls
23 lines (18 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
import React from "react";
import { Route, Routes } from "react-router-dom";
import NotFoundPage from "../../NotFoundPage";
import withSuspense from "../Common/Components/withSuspense";
const ListPolicies = withSuspense(React.lazy(() => import("./ListPolicies")));
const PolicyDetails = withSuspense(React.lazy(() => import("./PolicyDetails")));
const Policies = () => {
return (
<Routes>
<Route path={"/"} element={<ListPolicies />} />
<Route path={`:policyName`} element={<PolicyDetails />} />
<Route element={<NotFoundPage />} />
</Routes>
);
};
export default Policies;