Add displayName to contexts (#8814)
This commit is contained in:
@@ -59,6 +59,7 @@ interface IAvatarContext {
|
||||
}
|
||||
|
||||
const AvatarContext = React.createContext<IAvatarContext>({} as IAvatarContext)
|
||||
AvatarContext.displayName = 'AvatarContext'
|
||||
export const useAvatar = () => React.useContext(AvatarContext)
|
||||
|
||||
const randomColor =
|
||||
|
||||
Reference in New Issue
Block a user