-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Maintenance] Use Page component for mobile pages (#1993)
* Use Page component for mobile pages * Release notes * Use Button instead of Link in MobileBackButton * Update mobile budget table to use Page component * Settings page cleanup * Fix lint error * Updates + small font size increase in page headings * Fix rebase error * Button height * Revert payees navtab
- Loading branch information
1 parent
7a45d46
commit dc87264
Showing
34 changed files
with
686 additions
and
894 deletions.
There are no files selected for viewing
Binary file modified
BIN
-47 Bytes
(100%)
...s-snapshots/Mobile-checks-that-settings-page-can-be-opened-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-67 Bytes
(100%)
...s-snapshots/Mobile-checks-that-settings-page-can-be-opened-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-44 Bytes
(100%)
...s-snapshots/Mobile-checks-that-settings-page-can-be-opened-3-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-64 Bytes
(100%)
...s-snapshots/Mobile-checks-that-settings-page-can-be-opened-4-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+547 Bytes
(100%)
...apshots/Mobile-creates-a-transaction-from-accounts-id-page-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+646 Bytes
(100%)
...apshots/Mobile-creates-a-transaction-from-accounts-id-page-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+583 Bytes
(100%)
...s-snapshots/Mobile-creates-a-transaction-via-footer-button-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+703 Bytes
(100%)
...s-snapshots/Mobile-creates-a-transaction-via-footer-button-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+98 Bytes
(100%)
...s-snapshots/Mobile-creates-a-transaction-via-footer-button-3-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+157 Bytes
(100%)
...s-snapshots/Mobile-creates-a-transaction-via-footer-button-4-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+297 Bytes
(100%)
...s-snapshots/Mobile-creates-a-transaction-via-footer-button-5-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+322 Bytes
(100%)
...s-snapshots/Mobile-creates-a-transaction-via-footer-button-6-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1 Byte
(100%)
...apshots/Mobile-loads-the-budget-page-with-budgeted-amounts-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2 Bytes
(100%)
...apshots/Mobile-loads-the-budget-page-with-budgeted-amounts-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+867 Bytes
(100%)
...dividual-account-page-and-checks-that-filtering-is-working-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+910 Bytes
(100%)
...dividual-account-page-and-checks-that-filtering-is-working-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+900 Bytes
(110%)
...dividual-account-page-and-checks-that-filtering-is-working-3-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+960 Bytes
(110%)
...dividual-account-page-and-checks-that-filtering-is-working-4-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+886 Bytes
(100%)
...dividual-account-page-and-checks-that-filtering-is-working-5-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+928 Bytes
(100%)
...dividual-account-page-and-checks-that-filtering-is-working-6-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+89 Bytes
(100%)
...ots/Mobile-opens-the-accounts-page-and-asserts-on-balances-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+19 Bytes
(100%)
...ots/Mobile-opens-the-accounts-page-and-asserts-on-balances-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3 Bytes
(100%)
...ettings.test.js-snapshots/Settings-checks-the-page-visuals-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2 Bytes
(100%)
...ettings.test.js-snapshots/Settings-checks-the-page-visuals-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions
48
packages/desktop-client/src/components/MobileBackButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from 'react'; | ||
|
||
import useNavigate from '../hooks/useNavigate'; | ||
import CheveronLeft from '../icons/v1/CheveronLeft'; | ||
import { type CSSProperties, styles, theme } from '../style'; | ||
|
||
import Button from './common/Button'; | ||
import Text from './common/Text'; | ||
|
||
type MobileBackButtonProps = { | ||
style?: CSSProperties; | ||
}; | ||
|
||
export default function MobileBackButton({ style }: MobileBackButtonProps) { | ||
const navigate = useNavigate(); | ||
return ( | ||
<Button | ||
type="bare" | ||
style={{ | ||
color: theme.mobileHeaderText, | ||
justifyContent: 'center', | ||
margin: 10, | ||
paddingLeft: 5, | ||
paddingRight: 3, | ||
...style, | ||
}} | ||
hoveredStyle={{ | ||
color: theme.mobileHeaderText, | ||
background: theme.mobileHeaderTextHover, | ||
}} | ||
onPointerUp={() => navigate(-1)} | ||
> | ||
<CheveronLeft | ||
style={{ width: 30, height: 30, margin: -10, marginLeft: -5 }} | ||
/> | ||
<Text | ||
style={{ | ||
...styles.text, | ||
fontWeight: 500, | ||
marginLeft: 5, | ||
marginRight: 5, | ||
}} | ||
> | ||
Back | ||
</Text> | ||
</Button> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.