Add Outer export
This commit is contained in:
@@ -57,7 +57,7 @@ export function Card({
|
|||||||
const moderation = moderateProfile(profile, moderationOpts)
|
const moderation = moderateProfile(profile, moderationOpts)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[a.flex_1, a.gap_sm]}>
|
<Outer>
|
||||||
<Header>
|
<Header>
|
||||||
<Avatar profile={profile} moderationOpts={moderationOpts} />
|
<Avatar profile={profile} moderationOpts={moderationOpts} />
|
||||||
<NameAndHandle profile={profile} moderationOpts={moderationOpts} />
|
<NameAndHandle profile={profile} moderationOpts={moderationOpts} />
|
||||||
@@ -70,10 +70,18 @@ export function Card({
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<Description profile={profile} />
|
<Description profile={profile} />
|
||||||
</View>
|
</Outer>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function Outer({
|
||||||
|
children,
|
||||||
|
}: {
|
||||||
|
children: React.ReactElement | React.ReactElement[]
|
||||||
|
}) {
|
||||||
|
return <View style={[a.flex_1, a.gap_sm]}>{children}</View>
|
||||||
|
}
|
||||||
|
|
||||||
export function Header({
|
export function Header({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
|
|||||||
Reference in New Issue
Block a user