Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shall0pass committed Sep 16, 2023
1 parent 13e3f00 commit edeb3ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function BalanceWithCarryover({
<ArrowThinRight
width={7}
height={7}
style={makeAmountStyleGoal(balanceValue,goalValue)}
style={makeAmountStyleGoal(balanceValue, goalValue)}
/>
</View>
)}
Expand Down
10 changes: 4 additions & 6 deletions packages/desktop-client/src/components/budget/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,16 @@ export function makeAmountStyleGoal(value, goal) {
}

if (goal) {
if ( goal>=0 ) {
if(value<goal) {
return { color: theme.warningText }//TODO: Find the real theme value
if (goal >= 0) {
if (value < goal) {
return { color: theme.warningText }; //TODO: Find the real theme value
}
return {color: theme.noticeText}

return { color: theme.noticeText };
}
if (value < 0) {
return { color: theme.errorText };
}
}

}

export function makeAmountFullStyle(value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type CellValueProps = {
type?: string;
formatter?: (value) => ReactNode;
style?: CSSProperties;
getStyle?: (value,modifier?) => CSSProperties;
getStyle?: (value, modifier?) => CSSProperties;
privacyFilter?: ConditionalPrivacyFilterProps['privacyFilter'];
['data-testid']?: string;
};
Expand Down

0 comments on commit edeb3ff

Please sign in to comment.