(feat): improve profile popup in the navbar, add shared code to that popup
This commit is contained in:
parent
7a7ab3ad2e
commit
f4088691c5
4 changed files with 114 additions and 14 deletions
|
|
@ -74,7 +74,7 @@ export default function Navbar({ forMobile }: { forMobile: boolean }) {
|
|||
userId={id}
|
||||
component={(user) =>
|
||||
isMobile ? (
|
||||
<p className="font-medium text-md">{user?.display}</p>
|
||||
<p className="font-medium text-[1.07rem]">{user?.display}</p>
|
||||
) : (
|
||||
<Popover open={userInfoOpen} onOpenChange={setUserInfoOpen}>
|
||||
<PopoverTrigger
|
||||
|
|
@ -86,7 +86,7 @@ export default function Navbar({ forMobile }: { forMobile: boolean }) {
|
|||
textDecorationLine: "none",
|
||||
}}
|
||||
>
|
||||
<p className="font-medium text-md">{user?.display}</p>
|
||||
<p className="font-medium text-[1.07rem]">{user?.display}</p>
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue