Commit d61c61bf by tungnq

TODO: Bổ sung một số chỉnh sửa cho danh sách văn bản

parent 22ff14e1
...@@ -6,6 +6,7 @@ import { ...@@ -6,6 +6,7 @@ import {
StyleSheet, StyleSheet,
ScrollView, ScrollView,
Image, Image,
LogBox,
} from 'react-native'; } from 'react-native';
import Header from '../../../components/Header/Header'; import Header from '../../../components/Header/Header';
import styles from './style'; import styles from './style';
...@@ -15,6 +16,9 @@ import Dropdown from '../../../components/DropdownAlert/Dropdown'; ...@@ -15,6 +16,9 @@ import Dropdown from '../../../components/DropdownAlert/Dropdown';
import TextMulti from '../../../components/Input/TextMulti'; import TextMulti from '../../../components/Input/TextMulti';
import Button from '../../../components/Button'; import Button from '../../../components/Button';
const RegisterAbsenceView = props => { const RegisterAbsenceView = props => {
LogBox.ignoreLogs([
'VirtualizedLists should never be nested'
]);
const {} = props; const {} = props;
return ( return (
<View style={styles.container}> <View style={styles.container}>
......
import React from 'react'; import React from 'react';
import {Text, View, TouchableOpacity, StyleSheet, FlatList} from 'react-native'; import {Text, View, TouchableOpacity, StyleSheet, FlatList, LogBox} from 'react-native';
import styles from './style'; import styles from './style';
import Header from '../../../components/Header/Header'; import Header from '../../../components/Header/Header';
import R from '../../../assets/R'; import R from '../../../assets/R';
import Button from '../../../components/Button'; import Button from '../../../components/Button';
const AbsenceListByCourseView = props => { const AbsenceListByCourseView = props => {
const {item, listData} = props; const {item, listData} = props;
LogBox.ignoreLogs([
'VirtualizedLists should never be nested'
]);
const getColor = status => { const getColor = status => {
switch (status) { switch (status) {
......
...@@ -48,6 +48,7 @@ const ListRestReportView = props => { ...@@ -48,6 +48,7 @@ const ListRestReportView = props => {
</TouchableOpacity> </TouchableOpacity>
); );
}; };
return ( return (
<View style={styles.container}> <View style={styles.container}>
<Header title={'Báo nghỉ lịch dạy'} isBack /> <Header title={'Báo nghỉ lịch dạy'} isBack />
......
import { StyleSheet, Text, View } from 'react-native' import { StyleSheet, Text, View } from 'react-native'
import R from '../../../assets/R'
export default styles const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: R.colors.white,
},
body: {
flex: 1,
backgroundColor: R.colors.white,
},
})
const styles = StyleSheet.create({}) export default styles
\ No newline at end of file
import React from 'react'; import React from 'react';
import {Text, View, TouchableOpacity, StyleSheet} from 'react-native'; import {Text, View, TouchableOpacity, StyleSheet} from 'react-native';
import Header from '../../../components/Header/Header';
import R from '../../../assets/R';
import { useNavigation } from '@react-navigation/native';
import * as ScreenName from '../../../routers/ScreenNames';
import Button from '../../../components/Button';
import Dropdown from '../../../components/DropdownAlert/Dropdown';
import styles from './style';
const AddSendDocumentView = (props) => { const AddSendDocumentView = (props) => {
const { } = props; const { } = props;
const navigation = useNavigation();
const body = () => {
return (
<View style={styles.body}>
<View style={{flexDirection:'row', justifyContent:'space-between'}}>
<Text>Ngày to</Text>
<Text>Trng thái</Text>
</View>
</View>
);
};
return ( return (
<View <View
style={{ style={styles.container}>
flex: 1, <Header title={'Soạn văn bản đi'} isBack />
justifyContent: 'center', {body()}
alignItems: 'center',
}}>
<TouchableOpacity>
<Text>AddSendDocument</Text>
</TouchableOpacity>
</View> </View>
); );
}; };
export default AddSendDocumentView; export default AddSendDocumentView;
const styles = StyleSheet.create({})
\ No newline at end of file
...@@ -111,6 +111,7 @@ const styles = StyleSheet.create({ ...@@ -111,6 +111,7 @@ const styles = StyleSheet.create({
fontSize:R.fontsize.fontSizeContent, fontSize:R.fontsize.fontSizeContent,
fontWeight:'400', fontWeight:'400',
fontFamily:R.fonts.fontRegular, fontFamily:R.fonts.fontRegular,
color:R.colors.black
} }
}) })
......
import React from 'react'; import React from 'react';
import {Text, View, TouchableOpacity, FlatList, Image, TextInput} from 'react-native'; import {Text, View, TouchableOpacity, FlatList, Image, TextInput, LogBox} from 'react-native';
import styles from './style'; import styles from './style';
import Header from '../../components/Header/Header'; import Header from '../../components/Header/Header';
import R from '../../assets/R'; import R from '../../assets/R';
...@@ -12,6 +12,9 @@ import SubButton from '../../components/FAB/sub_button'; ...@@ -12,6 +12,9 @@ import SubButton from '../../components/FAB/sub_button';
const ListSendView = (props) => { const ListSendView = (props) => {
const {activeTab, dataListTabView, dataList, searchQuery, setSearchQuery, handleTabKey} = props; const {activeTab, dataListTabView, dataList, searchQuery, setSearchQuery, handleTabKey} = props;
const navigation = useNavigation(); const navigation = useNavigation();
LogBox.ignoreLogs([
'VirtualizedLists should never be nested'
]);
const getColorStatus = status => { const getColorStatus = status => {
switch (status) { switch (status) {
case 'Chờ xét duyệt': case 'Chờ xét duyệt':
...@@ -92,6 +95,43 @@ const ListSendView = (props) => { ...@@ -92,6 +95,43 @@ const ListSendView = (props) => {
paddingHorizontal={15} paddingHorizontal={15}
/> />
)} )}
{item.status === 'Cần chỉnh sửa' && (
<>
<View style={{flex: 0.1}}></View>
<Button
title="Chỉnh sửa"
onPress={() => {}}
backgroundColor={R.colors.orange}
textColor={R.colors.white}
height={25}
borderRadius={15}
fontSize={11}
fontWeight={'600'}
fontFamily={R.fonts.fontMedium}
paddingHorizontal={15}
/>
</>
)}
{item.status === 'Dự thảo' && (
<>
<View style={{flex: 0.1}}></View>
<Button
title="Yêu cầu phê duyệt"
onPress={() => {}}
backgroundColor={R.colors.orange}
textColor={R.colors.white}
height={25}
borderRadius={15}
fontSize={R.sizes.sm}
fontWeight={'600'}
fontFamily={R.fonts.fontMedium}
paddingHorizontal={15}
/>
</>
)}
<View style={{flex: 0.1}}></View> <View style={{flex: 0.1}}></View>
<Button <Button
title="Chi tiết" title="Chi tiết"
...@@ -160,8 +200,6 @@ const ListSendView = (props) => { ...@@ -160,8 +200,6 @@ const ListSendView = (props) => {
onChangeText={setSearchQuery} onChangeText={setSearchQuery}
/> />
</View> </View>
</View> </View>
<View style={{flex: 0.1}}></View> <View style={{flex: 0.1}}></View>
...@@ -182,10 +220,8 @@ const ListSendView = (props) => { ...@@ -182,10 +220,8 @@ const ListSendView = (props) => {
images={R.images.icEdit} images={R.images.icEdit}
backgroundColor={R.colors.orange} backgroundColor={R.colors.orange}
/> />
</FAB> </FAB>
</View> </View>
</View> </View>
</View> </View>
); );
......
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