Commit ce49f291 by tungnq

TODO: Đã thêm chức năng check box

parent 5345fd17
...@@ -110,8 +110,8 @@ container:{ ...@@ -110,8 +110,8 @@ container:{
}, },
dateText:{ dateText:{
fontSize: R.sizes.sm, fontSize: R.sizes.sm,
fontWeight: '500', fontWeight: '400',
fontFamily: R.fonts.fontMedium, fontFamily: R.fonts.fontRegular,
color: R.colors.black, color: R.colors.black,
}, },
percentText:{ percentText:{
......
...@@ -15,7 +15,7 @@ import TextMulti from '../../../components/Input/TextMulti'; ...@@ -15,7 +15,7 @@ import TextMulti from '../../../components/Input/TextMulti';
import Button from '../../../components/Button'; import Button from '../../../components/Button';
import CheckBox from '../../../components/CheckBox'; import CheckBox from '../../../components/CheckBox';
const CompensateRegisterView = props => { const CompensateRegisterView = props => {
const {isShow, setShowSchedule, scheduleData} = props; const {isShow, setShowSchedule, scheduleData, onCheckboxChange} = props;
const getCheckColor = (item) => { const getCheckColor = (item) => {
console.log(item?.totalSession); console.log(item?.totalSession);
...@@ -67,8 +67,13 @@ const CompensateRegisterView = props => { ...@@ -67,8 +67,13 @@ const CompensateRegisterView = props => {
period.available && styles.availableCell, period.available && styles.availableCell,
]}> ]}>
<CheckBox <CheckBox
size={20}
checked={period.available} checked={period.available}
value={period.available}
onValueChange={value => onCheckboxChange(index, periodIndex, value)}
size={20}
labelStyle={styles.label}
checkedColor={R.colors.main}
tickColor={R.colors.white}
/> />
<View style={{flexDirection:'row'}}> <View style={{flexDirection:'row'}}>
<Text <Text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment