Skip to content
Snippets Groups Projects
Unverified Commit bc5c2ce0 authored by youngcw's avatar youngcw Committed by GitHub
Browse files

Mobile: don't show hidden income categories (#1656)

parent 21d5f117
No related branches found
No related tags found
No related merge requests found
...@@ -488,8 +488,18 @@ class TotalsRow extends PureComponent { ...@@ -488,8 +488,18 @@ class TotalsRow extends PureComponent {
class IncomeCategory extends PureComponent { class IncomeCategory extends PureComponent {
render() { render() {
const { name, budget, balance, style, nameTextStyle, amountTextStyle } = const {
this.props; name,
budget,
hidden,
balance,
style,
nameTextStyle,
amountTextStyle,
} = this.props;
if (hidden) {
return null;
}
return ( return (
<ListItem <ListItem
style={{ style={{
...@@ -699,6 +709,7 @@ class IncomeBudgetGroup extends Component { ...@@ -699,6 +709,7 @@ class IncomeBudgetGroup extends Component {
key={category.id} key={category.id}
type={type} type={type}
name={category.name} name={category.name}
hidden={category.hidden}
budget={ budget={
type === 'report' type === 'report'
? reportBudget.catBudgeted(category.id) ? reportBudget.catBudgeted(category.id)
......
---
category: Bugfix
authors: [youngcw]
---
Don't show hidden income categories on mobile
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment