feat(plugins/settings.plugins): make filter button primary when active

This commit is contained in:
PalmDevs 2026-08-02 00:12:26 +07:00
parent c5c087cec3
commit 17bb26a2ea
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA
2 changed files with 2 additions and 2 deletions

View file

@ -211,7 +211,7 @@ function Screen() {
</View> </View>
<IconButton <IconButton
icon={FiltersHorizontalIcon} icon={FiltersHorizontalIcon}
variant="tertiary" variant={repos.length > 0 ? 'primary' : 'tertiary'}
onPress={() => onPress={() =>
ActionSheetActionCreators.openLazy( ActionSheetActionCreators.openLazy(
import( import(

View file

@ -270,7 +270,7 @@ function Screen() {
</View> </View>
<IconButton <IconButton
icon={FiltersHorizontalIcon} icon={FiltersHorizontalIcon}
variant="tertiary" variant={filter.length > 0 ? 'primary' : 'tertiary'}
onPress={() => onPress={() =>
ActionSheetActionCreators.openLazy( ActionSheetActionCreators.openLazy(
import('../components/FilterAndSortActionSheet'), import('../components/FilterAndSortActionSheet'),