add indicator on how many more items can be added
This commit is contained in:
@@ -60,6 +60,7 @@ export function WizardFeedCard({
|
|||||||
color={includesFeed ? 'secondary' : 'primary'}
|
color={includesFeed ? 'secondary' : 'primary'}
|
||||||
size="small"
|
size="small"
|
||||||
style={{paddingVertical: 6}}
|
style={{paddingVertical: 6}}
|
||||||
|
disabled={!includesFeed && state.feeds.length >= 3}
|
||||||
onPress={onAdd}>
|
onPress={onAdd}>
|
||||||
<ButtonText>
|
<ButtonText>
|
||||||
{includesFeed ? <Trans>Remove</Trans> : <Trans>Add</Trans>}
|
{includesFeed ? <Trans>Remove</Trans> : <Trans>Add</Trans>}
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ export function WizardProfileCard({
|
|||||||
color={includesProfile ? 'secondary' : 'primary'}
|
color={includesProfile ? 'secondary' : 'primary'}
|
||||||
size="small"
|
size="small"
|
||||||
style={{paddingVertical: 6}}
|
style={{paddingVertical: 6}}
|
||||||
|
disabled={!includesProfile && state.profiles.length >= 50}
|
||||||
onPress={onPressAddRemove}>
|
onPress={onPressAddRemove}>
|
||||||
<ButtonText>
|
<ButtonText>
|
||||||
{includesProfile ? <Trans>Remove</Trans> : <Trans>Add</Trans>}
|
{includesProfile ? <Trans>Remove</Trans> : <Trans>Add</Trans>}
|
||||||
|
|||||||
@@ -511,7 +511,14 @@ function Footer({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
]}>
|
]}>
|
||||||
|
<View style={[a.absolute, {right: 14, top: 23}]}>
|
||||||
|
<Text style={[a.font_bold]}>
|
||||||
|
{items.length}/{state.currentStep === 'Profiles' ? 50 : 3}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
|
|
||||||
<View style={[a.flex_row, a.gap_xs]}>
|
<View style={[a.flex_row, a.gap_xs]}>
|
||||||
|
<View style={[a.flex_row]}>
|
||||||
{items.slice(0, 6).map((p, index) => (
|
{items.slice(0, 6).map((p, index) => (
|
||||||
<UserAvatar
|
<UserAvatar
|
||||||
key={index}
|
key={index}
|
||||||
@@ -521,6 +528,7 @@ function Footer({
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
|
|
||||||
{items.length === 0 ? (
|
{items.length === 0 ? (
|
||||||
<View style={[a.gap_sm]}>
|
<View style={[a.gap_sm]}>
|
||||||
|
|||||||
Reference in New Issue
Block a user