From 4af0e4703b9ccac3f1c371d20d9f4cd9a493ee82 Mon Sep 17 00:00:00 2001 From: Jackson Hyde Date: Fri, 13 Sep 2024 10:36:37 +0100 Subject: [PATCH] [DRTII-1518] Header design tweaks (#40) * Design tweaks * Version bump * Logo strap size --------- Co-authored-by: jackson --- package.json | 2 +- src/components/Header/Header.tsx | 85 ++++++++++++++++++++------ src/components/Header/PortSelector.tsx | 4 +- 3 files changed, 70 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index c862a5e..a1db2f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@drt/drt-react-components", - "version": "1.5.0", + "version": "1.5.1", "description": "React components for DRT applications", "main": "dist/cjs/bundle.js", "module": "dist/esm/bundle.js", diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index dcd8bc0..219d3b5 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -45,6 +45,7 @@ const Header = ({ const [anchorEl, setAnchorEl] = React.useState(null); const [selectedPortOption, setSelectedPortOption] = React.useState(initialSelectedPortMenuItem); const open = Boolean(anchorEl); + const handleClick = (event: React.MouseEvent) => { setAnchorEl(event.currentTarget); }; @@ -58,30 +59,83 @@ const Header = ({ return ( - + - - Border - Force - Dynamic Response Tool + + + + + + Border Force + + + + + Dynamic Response Tool + + + + - Contact: drtpoiseteam@homeoffice.gov.uk {hasAdminMenuRoles && - +