From 4d077dd69a09a1e1f305709f9b040f18dd71aa96 Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Mon, 7 Oct 2024 09:07:48 +0100 Subject: [PATCH] Tooltip on banner design archive button --- .../bannerDesigns/StickyTopBar.tsx | 74 ++++++++++--------- 1 file changed, 40 insertions(+), 34 deletions(-) diff --git a/public/src/components/channelManagement/bannerDesigns/StickyTopBar.tsx b/public/src/components/channelManagement/bannerDesigns/StickyTopBar.tsx index 729b7a62..bcf4ee7a 100644 --- a/public/src/components/channelManagement/bannerDesigns/StickyTopBar.tsx +++ b/public/src/components/channelManagement/bannerDesigns/StickyTopBar.tsx @@ -8,6 +8,7 @@ import { DialogContent, DialogContentText, DialogActions, + Tooltip, } from '@mui/material'; import { makeStyles } from '@mui/styles'; import EditIcon from '@mui/icons-material/Edit'; @@ -104,39 +105,44 @@ const StickyTopBar: React.FC = ({ const [isOpen, open, close] = useOpenable(); return ( - <> - - - Are you sure? - - - Archiving this design will remove it from the banner design tool - you can only - restore with an engineer's help. - - - - - - - - + + + + + Are you sure? + + + Archiving this design will remove it from the banner design tool - you can only + restore with an engineer's help. + + + + + + + + + ); }; @@ -184,7 +190,7 @@ const StickyTopBar: React.FC = ({ )} {userHasLock && ( <> - {design.status === 'Draft' && } +