Skip to content

Commit

Permalink
Revert "Add "error" Page for special accounts in Mobile" (actualbudge…
Browse files Browse the repository at this point in the history
…t#2186)

* Revert "Add "error" Page for special accounts in Mobile (actualbudget#2114)"

This reverts commit b646234.
  • Loading branch information
twk3 authored Jan 6, 2024
1 parent 2f596e3 commit 2cca8f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ import {
import { useCategories } from '../../hooks/useCategories';
import { useNavigate } from '../../hooks/useNavigate';
import { useSetThemeColor } from '../../hooks/useSetThemeColor';
import { theme, styles } from '../../style';
import Button from '../common/Button';
import Text from '../common/Text';
import View from '../common/View';
import { theme } from '../../style';

import { AccountDetails } from './MobileAccountDetails';

Expand Down Expand Up @@ -174,27 +171,6 @@ export function Account(props) {
return null;
}

if (
accountId === 'budgeted' ||
accountId === 'offbudget' ||
accountId === 'uncategorized'
) {
return (
<View style={{ flex: 1, padding: 30 }}>
<Text style={(styles.text, { textAlign: 'center' })}>
There is no Mobile View at the moment
</Text>
<Button
type="normal"
style={{ fontSize: 15, marginLeft: 10, marginTop: 10 }}
onClick={() => navigate('/accounts')}
>
Go back to Mobile Accounts
</Button>
</View>
);
}

const account = accounts.find(acct => acct.id === accountId);

const isNewTransaction = id => {
Expand Down
6 changes: 0 additions & 6 deletions upcoming-release-notes/2114.md

This file was deleted.

6 changes: 6 additions & 0 deletions upcoming-release-notes/2186.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [twk3]
---

Revert to fix master: Add error Page for special accounts in Mobile

0 comments on commit 2cca8f2

Please sign in to comment.