Loading ...
+ + // TODO + // Map rows to model data + + return ( +
+ {model.description}
+
+
Loading ...
+ + // TODO + // Add uploaded by and upload time + + return ( +Uploaded by ABCD@equinor.com on Sep 13, 2023
+Options to compute models will soon be possible here!
+ > + ) +} diff --git a/src/pages/ModelPages/Model/Model.styled.tsx b/src/pages/ModelPages/Model/Model.styled.tsx new file mode 100644 index 00000000..8c6a0f48 --- /dev/null +++ b/src/pages/ModelPages/Model/Model.styled.tsx @@ -0,0 +1,14 @@ +import styled from 'styled-components' + +export const Wrapper = styled.div` + display: flex; + flex: auto; + flex-direction: row; + position: relative; + width: 100%; +` + +export const SidebarWrapper = styled.div` + heigth: 100%; + max-width: 256px; +` diff --git a/src/pages/ModelPages/Model/Model.tsx b/src/pages/ModelPages/Model/Model.tsx new file mode 100644 index 00000000..7b30b324 --- /dev/null +++ b/src/pages/ModelPages/Model/Model.tsx @@ -0,0 +1,41 @@ +import { useEffect, useState } from 'react' +import { Outlet, useParams } from 'react-router-dom' +import { useAnalogueModels } from '../../../hooks/useAnalogueModels' +import { components } from '../../../models/schema' +import * as Styled from './Model.styled' + +import { ModelNameFrame } from '../../../features/ModelView/ModelNameFrame/ModelNameFrame' +import { ModelNavigationBar } from '../../../features/ModelView/ModelNavigationBar/ModelNavigationBar' + +export type ModelType = Partial< + components['schemas']['GetAnalogueModelQueryResponse']['data'] +> + +export const Model = () => { + const [model, setModel] = useStateResults for models will soon be available here!
+ > + ) +} diff --git a/src/router.tsx b/src/router.tsx index 76156f4f..b6681935 100644 --- a/src/router.tsx +++ b/src/router.tsx @@ -1,6 +1,10 @@ import { createBrowserRouter, NonIndexRouteObject } from 'react-router-dom' import { App } from './App' +import { ModelView } from './features/ModelView/ModelView' import { Browse } from './pages/Browse/Browse' +import { Compute } from './pages/ModelPages/Compute/Compute' +import { Model } from './pages/ModelPages/Model/Model' +import { Results } from './pages/ModelPages/Results/Results' interface Tab extends Required