diff options
Diffstat (limited to 'src/components/ProfileHoverCard')
-rw-r--r-- | src/components/ProfileHoverCard/index.web.tsx | 2 | ||||
-rw-r--r-- | src/components/ProfileHoverCard/types.ts | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx index 17148a1b3..eb6efa4c9 100644 --- a/src/components/ProfileHoverCard/index.web.tsx +++ b/src/components/ProfileHoverCard/index.web.tsx @@ -74,7 +74,7 @@ export function ProfileHoverCard(props: ProfileHoverCardProps) { return props.children } else { return ( - <View onPointerMove={onPointerMove} style={[a.flex_shrink]}> + <View onPointerMove={onPointerMove} style={[a.flex_shrink, props.style]}> <ProfileHoverCardInner {...props} /> </View> ) diff --git a/src/components/ProfileHoverCard/types.ts b/src/components/ProfileHoverCard/types.ts index 01ef0fce7..7d9e19ac5 100644 --- a/src/components/ProfileHoverCard/types.ts +++ b/src/components/ProfileHoverCard/types.ts @@ -1,7 +1,9 @@ import type React from 'react' -export type ProfileHoverCardProps = { - children: React.ReactElement +import {type ViewStyleProp} from '#/alf' + +export type ProfileHoverCardProps = ViewStyleProp & { + children: React.ReactNode did: string disable?: boolean } |