Use new AnyProfileView
This commit is contained in:
Vendored
+1
-1
@@ -69,7 +69,7 @@ export function useProfileShadow<
|
|||||||
* This is useful for when the profile is not guaranteed to be loaded yet.
|
* This is useful for when the profile is not guaranteed to be loaded yet.
|
||||||
*/
|
*/
|
||||||
export function useMaybeProfileShadow<
|
export function useMaybeProfileShadow<
|
||||||
TProfileView extends AppBskyActorDefs.ProfileView,
|
TProfileView extends atp.profile.AnyProfileView,
|
||||||
>(profile?: TProfileView): Shadow<TProfileView> | undefined {
|
>(profile?: TProfileView): Shadow<TProfileView> | undefined {
|
||||||
const [shadow, setShadow] = useState(() =>
|
const [shadow, setShadow] = useState(() =>
|
||||||
profile ? shadows.get(profile) : undefined,
|
profile ? shadows.get(profile) : undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user