about summary refs log tree commit diff
path: root/src/components/interstitials
diff options
context:
space:
mode:
authorCaidan Williams <caidan@internet.dev>2025-08-21 13:23:53 -0700
committerCaidan Williams <caidan@internet.dev>2025-08-21 13:23:53 -0700
commit8ab49da6da0f6e253aa782808afa0a8940ccee54 (patch)
treec4da6c0b9675df65d20db4343c117ec3517ef32e /src/components/interstitials
parentc097f68a7d4116408bb848593346444a8260a16b (diff)
downloadvoidsky-8ab49da6da0f6e253aa782808afa0a8940ccee54.tar.zst
refactor: replace View with Button in ViewMoreCard for consistent colors across themes
Updated ViewMoreCard to use a Button component instead of a styled View
for the 'View more' action. This improves accessibility and consistency
with other interactive elements in TrendingVideos.
Diffstat (limited to 'src/components/interstitials')
-rw-r--r--src/components/interstitials/TrendingVideos.tsx18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/components/interstitials/TrendingVideos.tsx b/src/components/interstitials/TrendingVideos.tsx
index 4275f7fc8..6be64335a 100644
--- a/src/components/interstitials/TrendingVideos.tsx
+++ b/src/components/interstitials/TrendingVideos.tsx
@@ -219,19 +219,13 @@ function ViewMoreCard() {
             <Text style={[a.text_md]}>
               <Trans>View more</Trans>
             </Text>
-            <View
-              style={[
-                a.align_center,
-                a.justify_center,
-                a.rounded_full,
-                {
-                  width: 34,
-                  height: 34,
-                  backgroundColor: t.palette.primary_500,
-                },
-              ]}>
+            <Button
+              color="primary"
+              size="small"
+              shape="round"
+              label={_(msg`View more trending videos`)}>
               <ButtonIcon icon={ChevronRight} />
-            </View>
+            </Button>
           </View>
         )}
       </Link>