@@ -206,56 +206,13 @@ export const ProfileMenu: React.FC<ProfileMenuProps> = ({
206206
207207 const onDisconnect = useWalletDisconnect ( )
208208
209- const renderConnectedUser = ( ) => (
210- < >
211- < Flex direction = { 'column' } align = { 'stretch' } gap = { 'x2' } >
212- < Flex direction = { 'row' } align = { 'center' } justify = { 'space-between' } w = { '100%' } >
213- < Link
214- href = { `/profile/${ address } ` }
215- passHref
216- target = "_blank"
217- rel = "noopener noreferrer"
218- style = { { textDecoration : 'none' , flex : 1 } }
219- >
220- < Flex
221- direction = { 'row' }
222- align = { 'center' }
223- className = { profileRow }
224- aria-label = "Open profile"
225- >
226- < Avatar address = { address ! } src = { ensAvatar } size = { '40' } />
227- < Flex direction = { 'column' } ml = { 'x2' } >
228- < Text fontWeight = { 'display' } > { displayName } </ Text >
229- < Text variant = { 'paragraph-md' } color = { 'tertiary' } >
230- { userBalance }
231- </ Text >
232- </ Flex >
233- </ Flex >
234- </ Link >
235- < CopyButton text = { address ! } />
236- </ Flex >
237-
238- < Button
239- className = { disconnectButton }
240- variant = { 'outline' }
241- color = "negative"
242- onClick = { onDisconnect }
243- id = { 'close-modal' }
244- >
245- Disconnect
246- </ Button >
247- </ Flex >
248- < Box color = "border" borderStyle = "solid" borderWidth = "thin" />
249- </ >
250- )
251-
252- const renderConnectedUserStatic = ( ) => (
209+ const renderConnectedUserCommon = ( { isStatic = false } : { isStatic ?: boolean } ) => (
253210 < >
254211 < Flex
255212 direction = { 'column' }
256213 align = { 'stretch' }
257214 gap = { 'x2' }
258- style = { { paddingBottom : '8px' } }
215+ style = { isStatic ? { paddingBottom : '8px' } : undefined }
259216 >
260217 < Flex direction = { 'row' } align = { 'center' } justify = { 'space-between' } w = { '100%' } >
261218 < Link
@@ -297,6 +254,10 @@ export const ProfileMenu: React.FC<ProfileMenuProps> = ({
297254 </ >
298255 )
299256
257+ const renderConnectedUser = ( ) => renderConnectedUserCommon ( { isStatic : false } )
258+
259+ const renderConnectedUserStatic = ( ) => renderConnectedUserCommon ( { isStatic : true } )
260+
300261 const renderUserContent = ( isMobileFullscreen = false , showCreateButton = true ) => (
301262 < >
302263 { daos . length > 0 && (
0 commit comments