From d7e9c1179c9fd5f5c8b19a530c9c1e08613028b1 Mon Sep 17 00:00:00 2001 From: Matthieu Foucault Date: Thu, 18 Mar 2021 16:28:21 -0700 Subject: [PATCH] feat: add application and facility info to application page --- app/layouts/default-layout.tsx | 41 +++-- app/pages/reporter/application.tsx | 30 ++++ app/pages/reporter/view-application.tsx | 29 +++- .../default-layout.test.tsx.snap | 12 +- .../view-application.test.tsx.snap | 140 ++++++++++++++++++ .../__snapshots__/application.test.tsx.snap | 20 +++ .../unit/pages/reporter/application.test.tsx | 4 + .../unit/pages/view-application.test.tsx | 4 + 8 files changed, 256 insertions(+), 24 deletions(-) diff --git a/app/layouts/default-layout.tsx b/app/layouts/default-layout.tsx index 52730df9ce..9e6d02bc63 100644 --- a/app/layouts/default-layout.tsx +++ b/app/layouts/default-layout.tsx @@ -54,17 +54,24 @@ const DefaultLayout: React.FunctionComponent = ({ {showSubheader && }
- {title ? ( + {title || titleControls ? (
- -

{title}

- {help && ( - - )} - - {titleControls} + {title && ( + +
+

{title}

+ {help && ( + + )} +
+ + )} + {titleControls}
@@ -88,6 +95,18 @@ const DefaultLayout: React.FunctionComponent = ({ main { flex-grow: 1; } + + .title-container { + height: 100%; + display: flex; + flex-direction: column; + justify-content: center; + } + h1 { + font-size: 30px; + display: inline-block; + margin-bottom: 0; + } `}