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.
This commit is contained in:
@@ -219,19 +219,13 @@ function ViewMoreCard() {
|
|||||||
<Text style={[a.text_md]}>
|
<Text style={[a.text_md]}>
|
||||||
<Trans>View more</Trans>
|
<Trans>View more</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<View
|
<Button
|
||||||
style={[
|
color="primary"
|
||||||
a.align_center,
|
size="small"
|
||||||
a.justify_center,
|
shape="round"
|
||||||
a.rounded_full,
|
label={_(msg`View more trending videos`)}>
|
||||||
{
|
|
||||||
width: 34,
|
|
||||||
height: 34,
|
|
||||||
backgroundColor: t.palette.primary_500,
|
|
||||||
},
|
|
||||||
]}>
|
|
||||||
<ButtonIcon icon={ChevronRight} />
|
<ButtonIcon icon={ChevronRight} />
|
||||||
</View>
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
Reference in New Issue
Block a user