mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-22 00:13:45 -05:00
fix mobile uncategorised banner (#6758)
* fix mobile uncategorised banner * cleanup unnecessary nesting * note
This commit is contained in:
@@ -720,18 +720,20 @@ function UncategorizedTransactionsBanner(props) {
|
||||
justifyContent: 'space-between',
|
||||
}}
|
||||
>
|
||||
<Trans count={transactions.length}>
|
||||
You have {{ count: transactions.length }} uncategorized transactions
|
||||
(
|
||||
<FinancialText>
|
||||
{
|
||||
<Text>
|
||||
<Trans count={transactions.length}>
|
||||
You have {{ count: transactions.length }} uncategorized
|
||||
transactions (
|
||||
<FinancialText>
|
||||
{
|
||||
amount: format(totalUncategorizedAmount, 'financial'),
|
||||
} as TransObjectLiteral
|
||||
}
|
||||
</FinancialText>
|
||||
)
|
||||
</Trans>
|
||||
{
|
||||
amount: format(totalUncategorizedAmount, 'financial'),
|
||||
} as TransObjectLiteral
|
||||
}
|
||||
</FinancialText>
|
||||
)
|
||||
</Trans>
|
||||
</Text>
|
||||
<Button
|
||||
onPress={() => navigate('/categories/uncategorized')}
|
||||
style={PILL_STYLE}
|
||||
@@ -809,13 +811,7 @@ function OverbudgetedBanner({ month, onBudgetAction, ...props }) {
|
||||
justifyContent: 'space-between',
|
||||
}}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
flexDirection: 'row',
|
||||
alignItems: 'center',
|
||||
gap: 10,
|
||||
}}
|
||||
>
|
||||
<View>
|
||||
<View
|
||||
style={{
|
||||
flexDirection: 'row',
|
||||
@@ -962,28 +958,20 @@ function OverspendingBanner({ month, onBudgetAction, budgetType, ...props }) {
|
||||
justifyContent: 'space-between',
|
||||
}}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
flexDirection: 'row',
|
||||
alignItems: 'center',
|
||||
gap: 10,
|
||||
}}
|
||||
>
|
||||
<Text>
|
||||
<Trans count={numberOfOverspentCategories}>
|
||||
You have {{ count: numberOfOverspentCategories }} overspent
|
||||
categories (
|
||||
<FinancialText>
|
||||
<Text>
|
||||
<Trans count={numberOfOverspentCategories}>
|
||||
You have {{ count: numberOfOverspentCategories }} overspent
|
||||
categories (
|
||||
<FinancialText>
|
||||
{
|
||||
{
|
||||
{
|
||||
amount: format(totalOverspending, 'financial'),
|
||||
} as TransObjectLiteral
|
||||
}
|
||||
</FinancialText>
|
||||
)
|
||||
</Trans>
|
||||
</Text>
|
||||
</View>
|
||||
amount: format(totalOverspending, 'financial'),
|
||||
} as TransObjectLiteral
|
||||
}
|
||||
</FinancialText>
|
||||
)
|
||||
</Trans>
|
||||
</Text>
|
||||
<Button onPress={onOpenCategorySelectionModal} style={PILL_STYLE}>
|
||||
{budgetType === 'envelope' && <Trans>Cover</Trans>}
|
||||
{budgetType === 'tracking' && <Trans>View</Trans>}
|
||||
|
||||
Reference in New Issue
Block a user