NTP-14167 | Added 1-30 check

This commit is contained in:
yashmantri
2024-11-26 14:09:16 +05:30
parent c64cb08e2d
commit 5b3ba2a9f6
3 changed files with 11 additions and 6 deletions

View File

@@ -183,12 +183,13 @@ const FiltersContainer: React.FC<FilterContainerProps> = (props) => {
}}
>
<Text
style={[filterKey === selectedFilterKey.filterKey && styles.blueText]}
style={[filterKey === selectedFilterKey.filterKey && styles.blueText, GenericStyles.flex80]}
dark
>
{filters[filterGroupKey].filters[filterKey].displayText}
</Text>
{selectedFiltersMap[filterKey] && (
<View style={[GenericStyles.flex20, GenericStyles.alignItemsFlexEnd]}>
<View
style={[
filterKey === selectedFilterKey.filterKey
@@ -200,6 +201,7 @@ const FiltersContainer: React.FC<FilterContainerProps> = (props) => {
style={[
filterKey === selectedFilterKey.filterKey &&
GenericStyles.whiteText,
GenericStyles.lh18
]}
bold
dark
@@ -210,6 +212,7 @@ const FiltersContainer: React.FC<FilterContainerProps> = (props) => {
: 1}
</Text>
</View>
</View>
)}
</TouchableOpacity>
) : null

View File

@@ -53,15 +53,17 @@ const styles = StyleSheet.create({
backgroundColor: COLORS.BACKGROUND.SILVER,
borderColor: COLORS.BORDER.PRIMARY,
borderWidth: 1,
height: PixelRatio.roundToNearestPixel(25),
width: PixelRatio.roundToNearestPixel(25),
height: 20,
width: 20,
borderRadius: 20,
alignItems: 'center',
},
filterCountSelected: {
backgroundColor: COLORS.TEXT.BLUE,
height: PixelRatio.roundToNearestPixel(25),
width: PixelRatio.roundToNearestPixel(25),
borderColor: COLORS.BORDER.LIGHT_BLUE,
borderWidth: 1,
height: 20,
width: 20,
borderRadius: 20,
alignItems: 'center',
},

View File

@@ -336,7 +336,7 @@ const ListItem: React.FC<IListItem> = (props) => {
{' '}Bucket {dpdBucket}
</Text>
)}
{daysTillDeallocation ? (
{daysTillDeallocation && is1To30FieldAgent ? (
<Text small style={[styles.caseStatusText]} bold>
Deallocation in {daysTillDeallocation} day
{pluralise(daysTillDeallocation, '', 's')}