From 0fd5c9294a6bf75ecb657ab6974096a5013047d6 Mon Sep 17 00:00:00 2001 From: Ansh Nanda Date: Tue, 23 May 2023 15:33:27 -0700 Subject: [PATCH] refactor load latest btn --- src/view/com/util/load-latest/LoadLatestBtn.web.tsx | 4 ++-- src/view/com/util/load-latest/LoadLatestBtnMobile.tsx | 6 +++--- src/view/screens/Home.tsx | 2 +- src/view/screens/Notifications.tsx | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/view/com/util/load-latest/LoadLatestBtn.web.tsx b/src/view/com/util/load-latest/LoadLatestBtn.web.tsx index 839685029d..85fb5a0144 100644 --- a/src/view/com/util/load-latest/LoadLatestBtn.web.tsx +++ b/src/view/com/util/load-latest/LoadLatestBtn.web.tsx @@ -25,11 +25,11 @@ export const LoadLatestBtn = ({ onPress={onPress} hitSlop={HITSLOP} accessibilityRole="button" - accessibilityLabel={`Load new ${label}`} + accessibilityLabel={label} accessibilityHint=""> - Load new {label} + {label} ) diff --git a/src/view/com/util/load-latest/LoadLatestBtnMobile.tsx b/src/view/com/util/load-latest/LoadLatestBtnMobile.tsx index 5279696a27..548d30d5a9 100644 --- a/src/view/com/util/load-latest/LoadLatestBtnMobile.tsx +++ b/src/view/com/util/load-latest/LoadLatestBtnMobile.tsx @@ -25,15 +25,15 @@ export const LoadLatestBtn = observer( onPress={onPress} hitSlop={HITSLOP} accessibilityRole="button" - accessibilityLabel={`Load new ${label}`} - accessibilityHint={`Loads new ${label}`}> + accessibilityLabel={label} + accessibilityHint={label}> - Load new {label} + {label} diff --git a/src/view/screens/Home.tsx b/src/view/screens/Home.tsx index f8a497028e..4fe175fc1e 100644 --- a/src/view/screens/Home.tsx +++ b/src/view/screens/Home.tsx @@ -258,7 +258,7 @@ const FeedPage = observer( headerOffset={HEADER_OFFSET} /> {feed.hasNewLatest && !feed.isRefreshing && ( - + )} {store.me.notifications.hasNewLatest && !store.me.notifications.isRefreshing && ( - + )} )