Case details opacity change & bug fixes | Kunal (#50)

* changed opacity of pending tasks to 0.4

* fixes

* removed console log
This commit is contained in:
Kunal Sharma
2023-01-10 12:17:05 +05:30
committed by GitHub Enterprise
parent 947ab3fb8b
commit 20ea9276a6
6 changed files with 6 additions and 5 deletions

View File

@@ -139,7 +139,7 @@ android {
applicationId "com.avapp"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 15
versionCode 17
versionName "Address verification"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

View File

@@ -373,7 +373,7 @@ const allCasesSlice = createSlice({
Object.keys(state.selectedFilters).forEach(filterKey => {
switch (typeof state.selectedFilters[filterKey]) {
case 'object':
filterCount += Object.keys(
filterCount += state.selectedFilters[filterKey] && Object.keys(
state.selectedFilters[filterKey],
).length;
break;

View File

@@ -162,6 +162,7 @@ const AllCases = () => {
LeftComponent={<SearchIcon />}
onChangeText={handleSearchChange}
placeholder="Search by name, address"
defaultValue={searchQuery}
/>
<TouchableOpacity
style={[styles.filterButton]}

View File

@@ -32,7 +32,7 @@ const OpenStepperRenderer: React.FC<OpenStepperRendererProps> = ({tasks, context
? STEPPER_STATE.SYNCED
: STEPPER_STATE.DEFAULT;
});
const currentTaskIndex = tasks.findIndex(task => task.taskType === currentTask.taskType);
const currentTaskIndex = currentTask && tasks.findIndex(task => task.taskType === currentTask.taskType) || -1;
return (
<>

View File

@@ -86,7 +86,7 @@ const TaskStepper: React.FC<ITaskStepper> = props => {
export const styles = StyleSheet.create({
pendingListContainer: {
opacity: 0.6
opacity: 0.4
},
header: {
marginBottom: 18,