fix: syntax error - wrap subscription ternary content in fragment
This commit is contained in:
@@ -268,6 +268,7 @@ export default function ClientDetailScreen() {
|
|||||||
<Text style={{ fontSize: 15, color: '#94A3B8' }}>No active subscription</Text>
|
<Text style={{ fontSize: 15, color: '#94A3B8' }}>No active subscription</Text>
|
||||||
</View>
|
</View>
|
||||||
) : (
|
) : (
|
||||||
|
<>
|
||||||
{/* Plan type badge */}
|
{/* Plan type badge */}
|
||||||
{sub.type && (
|
{sub.type && (
|
||||||
<View style={{ flexDirection: 'row', marginBottom: 12, gap: 8 }}>
|
<View style={{ flexDirection: 'row', marginBottom: 12, gap: 8 }}>
|
||||||
@@ -298,6 +299,7 @@ export default function ClientDetailScreen() {
|
|||||||
<InfoRow label="Start Date" value={sub.startDate ? new Date(sub.startDate).toLocaleDateString('en-PH', { year: 'numeric', month: 'long', day: 'numeric' }) : null} />
|
<InfoRow label="Start Date" value={sub.startDate ? new Date(sub.startDate).toLocaleDateString('en-PH', { year: 'numeric', month: 'long', day: 'numeric' }) : null} />
|
||||||
<InfoRow label="Billing Day" value={sub.billingDay ? `Day ${sub.billingDay}` : null} isLast />
|
<InfoRow label="Billing Day" value={sub.billingDay ? `Day ${sub.billingDay}` : null} isLast />
|
||||||
</View>
|
</View>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user