Skip to content

Commit

Permalink
Merge pull request #1608 from ever-co/bug/statues-arrow-down-icon-dar…
Browse files Browse the repository at this point in the history
…k-theme

Bug/statues arrow down icon dark theme
  • Loading branch information
evereq authored Oct 20, 2023
2 parents 339e2ef + eaedbd9 commit 6e51a50
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
8 changes: 6 additions & 2 deletions apps/mobile/app/components/TaskPriority.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const TaskPriority: FC<TaskPriorityProps> = observer(
return (
<>
<TaskPriorityPopup
priorityName={task?.priority}
priorityName={task ? task?.priority : priority}
visible={openModal}
setSelectedPriority={(e) => onChangePriority(e.value)}
onDismiss={() => setOpenModal(false)}
Expand Down Expand Up @@ -81,7 +81,11 @@ const TaskPriority: FC<TaskPriorityProps> = observer(
</Text>
</View>
)}
<AntDesign name="down" size={14} color={colors.primary} />
<AntDesign
name="down"
size={14}
color={task?.priority || priority ? "#000000" : colors.primary}
/>
</View>
</TouchableOpacity>
</>
Expand Down
6 changes: 5 additions & 1 deletion apps/mobile/app/components/TaskSize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ const TaskSize: FC<TaskSizeProps> = observer(({ task, containerStyle, setSize, s
</Text>
</View>
)}
<AntDesign name="down" size={14} color={colors.primary} />
<AntDesign
name="down"
size={14}
color={task?.size || size ? "#000000" : colors.primary}
/>
</View>
</TouchableOpacity>
</>
Expand Down
1 change: 1 addition & 0 deletions apps/mobile/app/components/TaskSizePopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ interface ItemProps {
const Item: FC<ItemProps> = ({ currentSizeName, size, onSizeSelected }) => {
const { colors } = useAppTheme()
const selected = size.value === currentSizeName

return (
<TouchableOpacity onPress={() => onSizeSelected(size)}>
<View style={{ ...styles.wrapperItem, borderColor: colors.border }}>
Expand Down
8 changes: 6 additions & 2 deletions apps/mobile/app/components/TaskStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const TaskStatus: FC<TaskStatusProps> = observer(
return (
<>
<TaskStatusPopup
statusName={task?.status}
statusName={task ? task?.status : status}
visible={openModal}
setSelectedStatus={(e) => onChangeStatus(e)}
onDismiss={() => setOpenModal(false)}
Expand Down Expand Up @@ -90,7 +90,11 @@ const TaskStatus: FC<TaskStatusProps> = observer(
)}
</Text>
)}
<AntDesign name="down" size={14} color={colors.primary} />
<AntDesign
name="down"
size={14}
color={task?.status || status ? "#000000" : colors.primary}
/>
</View>
</TouchableOpacity>
</>
Expand Down

0 comments on commit 6e51a50

Please sign in to comment.