feat: add back button to reports pages (#6702)
* feat: add back button to reports pages * Update VRT screenshots Auto-generated by VRT workflow PR: #6702 --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 93 KiB |
@@ -322,7 +322,7 @@ export function Titlebar({ style }: TitlebarProps) {
|
||||
|
||||
<Routes>
|
||||
<Route
|
||||
path="/accounts"
|
||||
path="*"
|
||||
element={
|
||||
location.state?.goBack ? (
|
||||
<Button variant="bare" onPress={() => navigate(-1)}>
|
||||
@@ -340,8 +340,6 @@ export function Titlebar({ style }: TitlebarProps) {
|
||||
<Route path="/accounts/:id" element={<AccountSyncCheck />} />
|
||||
|
||||
<Route path="/budget" element={<BudgetTitlebar />} />
|
||||
|
||||
<Route path="*" element={null} />
|
||||
</Routes>
|
||||
<View style={{ flex: 1 }} />
|
||||
<SpaceBetween gap={10}>
|
||||
|
||||
@@ -103,7 +103,7 @@ export function ReportCard({
|
||||
<Layout {...layoutProps}>
|
||||
<Button
|
||||
variant="bare"
|
||||
onPress={() => navigate(to)}
|
||||
onPress={() => navigate(to, { state: { goBack: true } })}
|
||||
style={{
|
||||
height: '100%',
|
||||
width: '100%',
|
||||
|
||||
6
upcoming-release-notes/6702.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Features
|
||||
authors: [aelxxs]
|
||||
---
|
||||
|
||||
Adds "Back" button to reports config pages
|
||||