From 9dae3a48bef7f4d0d0ce273f6cf9ec78f47b1017 Mon Sep 17 00:00:00 2001 From: enes Date: Mon, 29 Jul 2024 18:06:23 +0200 Subject: [PATCH] fix: IconButton conflict, username layout --- src/components/AppBar/AppBar.tsx | 5 +++- src/components/username.tsx | 51 +++++++++++++++++++------------- src/layouts/modal/index.tsx | 8 ++++- src/theme/index.ts | 12 -------- 4 files changed, 42 insertions(+), 34 deletions(-) diff --git a/src/components/AppBar/AppBar.tsx b/src/components/AppBar/AppBar.tsx index 641a81d..76d8370 100644 --- a/src/components/AppBar/AppBar.tsx +++ b/src/components/AppBar/AppBar.tsx @@ -170,7 +170,10 @@ export const AppBar = () => { {username} diff --git a/src/components/username.tsx b/src/components/username.tsx index 768d1a9..fc4d710 100644 --- a/src/components/username.tsx +++ b/src/components/username.tsx @@ -15,34 +15,45 @@ const Username = ({ username, avatarContent, handleClick }: Props) => { const hexKey = useSelector((state: State) => state.auth.usersPubkey) return ( - - user-avatar - {username} + {username || 'test'} - + + user-avatar + + ) } diff --git a/src/layouts/modal/index.tsx b/src/layouts/modal/index.tsx index e13c8d9..5ca46d1 100644 --- a/src/layouts/modal/index.tsx +++ b/src/layouts/modal/index.tsx @@ -59,7 +59,13 @@ export const Modal = () => { onClick={handleClose} sx={{ fontSize: '18px', - color: 'rgba(0, 0, 0, 0.5)' + color: 'rgba(0, 0, 0, 0.5)', + padding: '8px 15px', + borderRadius: '4px', + ':hover': { + background: 'var(--primary-light)', + color: 'white' + } }} >