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

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

* Add "error" Page for special accounts in Mobile
parent 8bf0f8e5
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,10 @@ import {
import { useCategories } from '../../hooks/useCategories';
import { useNavigate } from '../../hooks/useNavigate';
import { useSetThemeColor } from '../../hooks/useSetThemeColor';
import { theme } from '../../style';
import { theme, styles } from '../../style';
import Button from '../common/Button';
import Text from '../common/Text';
import View from '../common/View';
import { AccountDetails } from './MobileAccountDetails';
......@@ -171,6 +174,27 @@ 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 => {
......
---
category: Bugfix
authors: [HansiWursti]
---
mobile: error page for special account urls
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