Skip to content

Commit

Permalink
fix: resolved philips pr review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
arfamomin committed Apr 23, 2024
1 parent 6eeced0 commit c040cb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/Components/PressableRequirement/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { colors } from '../../styles/colors';
export default StyleSheet.create({
requirementContainer: {
flexDirection: 'row',
paddingTop: 20,
columnGap: 20,
paddingHorizontal: '6%',
paddingVertical: 20,
Expand Down
18 changes: 3 additions & 15 deletions src/app/(BottomTabNavigation)/AllCases/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@ export function getStatusColor(status: string) {
throw new Error(`Invalid status: ${status}`);
}

if (
Object.values(GreenStatusOptions).includes(
status as unknown as GreenStatusOptions,
)
) {
if (Object.values(GreenStatusOptions).includes(status)) {
return {
background: {
backgroundColor: colors.lightGreen,
Expand All @@ -85,11 +81,7 @@ export function getStatusColor(status: string) {
},
text: { color: colors.darkGreen },
};
} else if (
Object.values(YellowStatusOptions).includes(
status as unknown as YellowStatusOptions,
)
) {
} else if (Object.values(YellowStatusOptions).includes(status)) {
return {
background: {
backgroundColor: colors.lightYellow,
Expand All @@ -98,11 +90,7 @@ export function getStatusColor(status: string) {
},
text: { color: colors.darkYellow },
};
} else if (
Object.values(RedStatusOptions).includes(
status as unknown as RedStatusOptions,
)
) {
} else if (Object.values(RedStatusOptions).includes(status)) {
return {
background: {
backgroundColor: colors.lightRed,
Expand Down

0 comments on commit c040cb5

Please sign in to comment.