Skip to content

Commit

Permalink
render retry button when using LoadFailureView
Browse files Browse the repository at this point in the history
  • Loading branch information
brainbicycle committed Oct 8, 2024
1 parent 345b07c commit 0b621bf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/Scenes/Artwork/Components/ArtworkError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const ArtworkErrorScreen: React.FC<{}> = withSuspense({
ErrorFallback: (fallbackProps) => {
return (
<LoadFailureView
onRetry={fallbackProps.resetErrorBoundary}
useSafeArea={false}
error={fallbackProps.error}
showBackButton={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export const HomeViewSectionScreenQueryRenderer = withSuspense({
},
LoadingFallback: HomeViewSectionScreenPlaceholder,
ErrorFallback: (fallbackProps) => (
<LoadFailureView showBackButton trackErrorBoundary={false} error={fallbackProps.error} />
<LoadFailureView
showBackButton
trackErrorBoundary={false}
error={fallbackProps.error}
onRetry={fallbackProps.resetErrorBoundary}
/>
),
})
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const MyCollectionArtworkEditQueryRenderer = withSuspense({
ErrorFallback: (fallbackProps) => {
return (
<LoadFailureView
onRetry={fallbackProps.resetErrorBoundary}
showBackButton={true}
useSafeArea={false}
error={fallbackProps.error}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export const MyCollectionCollectedArtistsPrivacyQueryRenderer: React.FC<{}> = wi
ErrorFallback: (fallbackProps) => {
return (
<LoadFailureView
onRetry={fallbackProps.resetErrorBoundary}
error={fallbackProps.error}
trackErrorBoundary={false}
showCloseButton={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const SubmitArtworkFormEdit: React.FC<SubmitArtworkProps> = withSuspense(
ErrorFallback: (fallbackProps) => {
return (
<LoadFailureView
onRetry={fallbackProps.resetErrorBoundary}
error={fallbackProps.error}
showCloseButton={true}
trackErrorBoundary={false}
Expand Down

0 comments on commit 0b621bf

Please sign in to comment.