fix: ServerProfile (#1881)
This commit is contained in:
		
							parent
							
								
									3fdd0edf14
								
							
						
					
					
						commit
						9c13befcb6
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -11,13 +11,13 @@ import { openImageModal, openUserProfile } from "@utils/discord"; | |||
| import { classes } from "@utils/misc"; | ||||
| import { ModalRoot, ModalSize, openModal } from "@utils/modal"; | ||||
| import { LazyComponent, useAwaiter } from "@utils/react"; | ||||
| import { findByCode, findByPropsLazy } from "@webpack"; | ||||
| import { findByProps, findByPropsLazy } from "@webpack"; | ||||
| import { FluxDispatcher, Forms, GuildChannelStore, GuildMemberStore, moment, Parser, PresenceStore, RelationshipStore, ScrollerThin, SnowflakeUtils, TabBar, Timestamp, useEffect, UserStore, UserUtils, useState, useStateFromStores } from "@webpack/common"; | ||||
| import { Guild, User } from "discord-types/general"; | ||||
| 
 | ||||
| const IconUtils = findByPropsLazy("getGuildBannerURL"); | ||||
| const IconClasses = findByPropsLazy("icon", "acronym", "childWrapper"); | ||||
| const UserRow = LazyComponent(() => findByCode(".listDiscriminator")); | ||||
| const FriendRow = LazyComponent(() => findByProps("FriendRow").FriendRow); | ||||
| 
 | ||||
| const cl = classNameFactory("vc-gp-"); | ||||
| 
 | ||||
|  | @ -235,7 +235,7 @@ function UserList(type: "friends" | "blocked", guild: Guild, ids: string[], setC | |||
|     return ( | ||||
|         <ScrollerThin fade className={cl("scroller")}> | ||||
|             {members.map(id => | ||||
|                 <UserRow | ||||
|                 <FriendRow | ||||
|                     user={UserStore.getUser(id)} | ||||
|                     status={PresenceStore.getStatus(id) || "offline"} | ||||
|                     onSelect={() => openUserProfile(id)} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue