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 {
StyleSheet,
ScrollView,
Image,
LogBox,
} from 'react-native';
import Header from '../../../components/Header/Header';
import styles from './style';
......@@ -15,6 +16,9 @@ import Dropdown from '../../../components/DropdownAlert/Dropdown';
import TextMulti from '../../../components/Input/TextMulti';
import Button from '../../../components/Button';
const RegisterAbsenceView = props => {
LogBox.ignoreLogs([
'VirtualizedLists should never be nested'
]);
const {} = props;
return (
<View style={styles.container}>
......
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 Header from '../../../components/Header/Header';
import R from '../../../assets/R';
import Button from '../../../components/Button';
const AbsenceListByCourseView = props => {
const {item, listData} = props;
LogBox.ignoreLogs([
'VirtualizedLists should never be nested'
]);
const getColor = status => {
switch (status) {
......
......@@ -48,6 +48,7 @@ const ListRestReportView = props => {
</TouchableOpacity>
);
};
return (
<View style={styles.container}>
<Header title={'Báo nghỉ lịch dạy'} isBack />
......
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({})
\ No newline at end of file
export default styles
import React from 'react';
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 { } = 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 (
<View
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
}}>
<TouchableOpacity>
<Text>AddSendDocument</Text>
</TouchableOpacity>
style={styles.container}>
<Header title={'Soạn văn bản đi'} isBack />
{body()}
</View>
);
};
export default AddSendDocumentView;
const styles = StyleSheet.create({})
\ No newline at end of file
......@@ -111,6 +111,7 @@ const styles = StyleSheet.create({
fontSize:R.fontsize.fontSizeContent,
fontWeight:'400',
fontFamily:R.fonts.fontRegular,
color:R.colors.black
}
})
......
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 Header from '../../components/Header/Header';
import R from '../../assets/R';
......@@ -12,6 +12,9 @@ import SubButton from '../../components/FAB/sub_button';
const ListSendView = (props) => {
const {activeTab, dataListTabView, dataList, searchQuery, setSearchQuery, handleTabKey} = props;
const navigation = useNavigation();
LogBox.ignoreLogs([
'VirtualizedLists should never be nested'
]);
const getColorStatus = status => {
switch (status) {
case 'Chờ xét duyệt':
......@@ -92,6 +95,43 @@ const ListSendView = (props) => {
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>
<Button
title="Chi tiết"
......@@ -160,8 +200,6 @@ const ListSendView = (props) => {
onChangeText={setSearchQuery}
/>
</View>
</View>
<View style={{flex: 0.1}}></View>
......@@ -182,10 +220,8 @@ const ListSendView = (props) => {
images={R.images.icEdit}
backgroundColor={R.colors.orange}
/>
</FAB>
</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