-
Matiss Janis Aboltins authored
Part 2 of the path migration. No functional changes. Part 1: https://github.com/actualbudget/actual/pull/1418 --------- Co-authored-by:
Jed Fox <git@jedfox.com>
Matiss Janis Aboltins authoredPart 2 of the path migration. No functional changes. Part 1: https://github.com/actualbudget/actual/pull/1418 --------- Co-authored-by:
Jed Fox <git@jedfox.com>
Change.js 423 B
import React from 'react';
import { integerToCurrency } from 'loot-core/src/shared/util';
import { colors, styles } from '../../style';
import Block from '../common/Block';
function Change({ amount }) {
return (
<Block
style={[styles.smallText, { color: amount < 0 ? colors.r5 : colors.g5 }]}
>
{amount >= 0 ? '+' : ''}
{integerToCurrency(amount)}
</Block>
);
}
export default Change;