Skip to content

Commit

Permalink
Add Retry Button on Browse Screen (Closes #667)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajarsheechatterjee committed Jan 7, 2024
1 parent 9253249 commit c3543f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/screens/BrowseSourceScreen/BrowseSourceScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const BrowseSourceScreen: React.FC<BrowseSourceScreenProps> = ({ route }) => {
filterValues,
setFilters,
clearFilters,
refetchNovels,
} = useBrowseSource(sourceId, showLatestNovels);

const { defaultCategoryId = 1 } = useCategorySettings();
Expand Down Expand Up @@ -126,6 +127,13 @@ const BrowseSourceScreen: React.FC<BrowseSourceScreenProps> = ({ route }) => {
) : errorMessage || novelList.length === 0 ? (
<ErrorScreenV2
error={errorMessage || getString('sourceScreen.noResultsFound')}
actions={[
{
iconName: 'refresh',
title: getString('common.retry'),
onPress: refetchNovels,
},
]}
/>
) : (
<NovelList
Expand Down

0 comments on commit c3543f8

Please sign in to comment.