File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ const AccountMenu: FC = () => {
33
33
const [ authState , setAuthState ] = useAtom ( authAtom )
34
34
const [ logoutDialogOpen , setLogoutDialogOpen ] = useState ( false )
35
35
const [ editDialogOpen , setEditDialogOpen ] = useState ( false )
36
+ const { isSM } = useCurrentSize ( )
36
37
37
38
const handleLogout = ( ) => {
38
39
setAuthState ( { } )
@@ -72,6 +73,14 @@ const AccountMenu: FC = () => {
72
73
/>
73
74
) }
74
75
76
+ { isSM && (
77
+ < MenuItem
78
+ shouldDismissPopover = { false }
79
+ icon = "user"
80
+ text = { authState . username }
81
+ />
82
+ ) }
83
+
75
84
< MenuItem
76
85
shouldDismissPopover = { false }
77
86
icon = "edit"
@@ -161,7 +170,7 @@ export const AccountManager: ComponentType = withGlobalErrorBoundary(() => {
161
170
< Popover2 content = { < AccountMenu /> } position = { Position . BOTTOM_RIGHT } >
162
171
< Button
163
172
icon = "user"
164
- text = { authState . username }
173
+ text = { ! isSM && authState . username }
165
174
rightIcon = "caret-down"
166
175
/>
167
176
</ Popover2 >
You can’t perform that action at this time.
0 commit comments