Skip to content

Commit

Permalink
COM-3849: change colors
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysseferreira committed Dec 5, 2024
1 parent d21619f commit b3c963e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/form/MultipleCheckboxList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
TouchableOpacity,
} from 'react-native';
import { MaterialIcons } from '@expo/vector-icons';
import { GREY } from '../../../styles/colors';
import { GREY, PINK } from '../../../styles/colors';
import { DataOptionsType } from '../../../store/attendanceSheets/slice';
import styles from './styles';

Expand All @@ -23,7 +23,7 @@ interface RenderItemProps {

const renderItem = ({ item, checkedList, onPressCheckbox }: RenderItemProps) => {
const iconName = checkedList.includes(item.value) ? 'check-box' : 'check-box-outline-blank';
const iconColor = checkedList.includes(item.value) ? GREY[900] : GREY[600];
const iconColor = checkedList.includes(item.value) ? PINK[500] : GREY[600];
const textStyle = checkedList.includes(item.value) ? styles.text : { ...styles.text, color: GREY[600] };

return (
Expand Down
4 changes: 2 additions & 2 deletions src/components/form/RadioButtonList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TouchableOpacity, Text } from 'react-native';
import { MaterialIcons } from '@expo/vector-icons';
import styles from './styles';
import { GREY } from '../../../styles/colors';
import { GREY, PINK } from '../../../styles/colors';
import { DataOptionsType } from '../../../store/attendanceSheets/slice';

interface RadioButtonProps {
Expand All @@ -18,7 +18,7 @@ interface RenderItemProps {

const renderItem = ({ item, checkedRadioButton, onPressCheckbox }: RenderItemProps) => {
const iconName = checkedRadioButton === item.value ? 'radio-button-checked' : 'radio-button-unchecked';
const iconColor = checkedRadioButton === item.value ? GREY[900] : GREY[600];
const iconColor = checkedRadioButton === item.value ? PINK[500] : GREY[600];
const textStyle = checkedRadioButton === item.value ? styles.text : { ...styles.text, color: GREY[600] };

return (
Expand Down

0 comments on commit b3c963e

Please sign in to comment.