Skip to content

Commit

Permalink
alter styling
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fidd committed Dec 15, 2024
1 parent 42719f5 commit d681a73
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions packages/desktop-client/src/components/settings/FixSplits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ function renderResults(results: Results) {
}
if (mismatchedSplits.length > 0) {
result.push(
`Found ${mismatchedSplits.length} split transaction${mismatchedSplits.length > 1 ? 's' : ''} with mismatched amounts:\n` +
`Found ${mismatchedSplits.length} split transaction${mismatchedSplits.length > 1 ? 's' : ''} ` +
`with mismatched amounts on the below date${mismatchedSplits.length > 1 ? 's' : ''}. ` +
`Please fix ${mismatchedSplits.length > 1 ? 'these' : 'this'} manually:\n` +
mismatchedSplits.map(t => `- ${t.date}`).join('\n'),
);
}
Expand All @@ -46,11 +48,12 @@ function renderResults(results: Results) {
return (
<Paragraph
style={{
color: theme.noticeTextLight,
marginBottom: 0,
marginLeft: '1em',
textAlign: 'right',
color:
mismatchedSplits.length === 0
? theme.noticeTextLight
: theme.errorText,
whiteSpace: 'pre-wrap',
marginTop: '1em',
}}
>
{result.join('\n')}
Expand All @@ -76,11 +79,7 @@ export function FixSplits() {
primaryAction={
<View
style={{
flexDirection: 'row',
justifyContent: 'space-between',
maxWidth: 500,
width: '100%',
alignItems: 'center',
display: 'block',
}}
>
<ButtonWithLoading isLoading={loading} onPress={onFix}>
Expand Down

0 comments on commit d681a73

Please sign in to comment.