dont show your own name first
This commit is contained in:
@@ -551,10 +551,8 @@ function Footer({
|
|||||||
const editDialogControl = useDialogControl()
|
const editDialogControl = useDialogControl()
|
||||||
const {bottom: bottomInset} = useSafeAreaInsets()
|
const {bottom: bottomInset} = useSafeAreaInsets()
|
||||||
|
|
||||||
const items =
|
const items = state.currentStep === 'Profiles' ? state.profiles : state.feeds
|
||||||
state.currentStep === 'Profiles'
|
const initialNamesIndex = state.currentStep === 'Profiles' ? 1 : 0
|
||||||
? [...state.profiles.slice(1), state.profiles[0]]
|
|
||||||
: state.feeds
|
|
||||||
|
|
||||||
const isEditEnabled =
|
const isEditEnabled =
|
||||||
(state.currentStep === 'Profiles' && items.length > 1) ||
|
(state.currentStep === 'Profiles' && items.length > 1) ||
|
||||||
@@ -623,26 +621,30 @@ function Footer({
|
|||||||
</Trans>
|
</Trans>
|
||||||
) : items.length === 1 ? (
|
) : items.length === 1 ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
<Text style={[a.font_bold, textStyles]}>{getName(items[0])}</Text>{' '}
|
<Text style={[a.font_bold, textStyles]}>
|
||||||
|
{getName(items[initialNamesIndex])}
|
||||||
|
</Text>{' '}
|
||||||
is included in your starter pack
|
is included in your starter pack
|
||||||
</Trans>
|
</Trans>
|
||||||
) : items.length === 2 ? (
|
) : items.length === 2 ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
<Text style={[a.font_bold, textStyles]}>
|
<Text style={[a.font_bold, textStyles]}>
|
||||||
{getName(items[0])}{' '}
|
{getName(items[initialNamesIndex])}{' '}
|
||||||
</Text>
|
</Text>
|
||||||
and
|
and
|
||||||
<Text> </Text>
|
<Text> </Text>
|
||||||
<Text style={[a.font_bold]}>{getName(items[1])} </Text>
|
<Text style={[a.font_bold, textStyles]}>
|
||||||
|
{getName(items[state.currentStep === 'Profiles' ? 0 : 1])}{' '}
|
||||||
|
</Text>
|
||||||
are included in your starter pack
|
are included in your starter pack
|
||||||
</Trans>
|
</Trans>
|
||||||
) : (
|
) : (
|
||||||
<Trans>
|
<Trans>
|
||||||
<Text style={[a.font_bold, textStyles]}>
|
<Text style={[a.font_bold, textStyles]}>
|
||||||
{getName(items[0])},{' '}
|
{getName(items[initialNamesIndex])},{' '}
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={[a.font_bold, textStyles]}>
|
<Text style={[a.font_bold, textStyles]}>
|
||||||
{getName(items[1])},{' '}
|
{getName(items[initialNamesIndex + 1])},{' '}
|
||||||
</Text>
|
</Text>
|
||||||
and {items.length - 2}{' '}
|
and {items.length - 2}{' '}
|
||||||
<Plural value={items.length - 2} one="other" other="others" /> are
|
<Plural value={items.length - 2} one="other" other="others" /> are
|
||||||
|
|||||||
Reference in New Issue
Block a user