diff --git a/pages/_app.tsx b/pages/_app.tsx index ce0fbaef07bb661c9a0749f9fb937aeaf3f03a7c..d95aab4509207521f846b97581f02c80c72db5d2 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -130,7 +130,7 @@ function CustomApp({ <TranslationsProvider> <Head> <link rel="icon" href="/favicon.png" /> - <title>Welcome to example-orchestrator-ui!</title> + <title>GÉANT Service Orchestrator</title> </Head> <main className="app"> <ConfirmationDialogContextWrapper> diff --git a/pages/maps/index.tsx b/pages/maps/index.tsx index 06cb76a8978d03349d70794c4f81066528fd4ad0..acb93fd659718c805d1609d45f035758e2a86b92 100644 --- a/pages/maps/index.tsx +++ b/pages/maps/index.tsx @@ -1,24 +1,20 @@ import NetworkMap from '@/components/NetworkMap/NetworkMap'; +import { GSOPolicyResource } from '@/types/policyResources'; import { NetworkTopologyData } from '@/types/types'; +import { WfoPolicyRenderPageFallback } from '@orchestrator-ui/orchestrator-ui-components'; import axios from 'axios'; import { NextPage, GetServerSideProps } from 'next'; -import Head from 'next/head'; import React from 'react'; interface MapsProps { networkTopologyData: NetworkTopologyData; } -const Maps: NextPage<MapsProps> = ({ networkTopologyData }) => { +const MapsPage: NextPage<MapsProps> = ({ networkTopologyData }) => { return ( - <> - <Head> - <title>Maps</title> - </Head> - <div> - <NetworkMap data={networkTopologyData} /> - </div> - </> + <WfoPolicyRenderPageFallback resource={GSOPolicyResource.NAVIGATION_MAPS}> + <NetworkMap data={networkTopologyData} /> + </WfoPolicyRenderPageFallback> ); }; @@ -42,4 +38,4 @@ export const getServerSideProps: GetServerSideProps = async () => { } }; -export default Maps; +export default MapsPage; diff --git a/types/policyResources.ts b/types/policyResources.ts new file mode 100644 index 0000000000000000000000000000000000000000..777a962531e5cb842714034ca1b4912ea75c96b0 --- /dev/null +++ b/types/policyResources.ts @@ -0,0 +1,3 @@ +export enum GSOPolicyResource { + NAVIGATION_MAPS = 'NAVIGATION_MAPS', +}