actual/packages/desktop-client/src/components/reports/Change.js
Tom French 9c0df36e16
Sort import in alphabetical order (#238)
* style: enforce sorting of imports

* style: alphabetize imports

* style: merge duplicated imports
2022-09-02 15:07:24 +01:00

19 lines
461 B
JavaScript

import React from 'react';
import { integerToCurrency } from 'loot-core/src/shared/util';
import { Block } from 'loot-design/src/components/common';
import { colors, styles } from 'loot-design/src/style';
function Change({ amount, style }) {
return (
<Block
style={[styles.smallText, { color: amount < 0 ? colors.r5 : colors.g5 }]}
>
{amount >= 0 ? '+' : ''}
{integerToCurrency(amount)}
</Block>
);
}
export default Change;