Commit 76276564 by tungnq

BUG: Đang không tìm được đường dẫn chính xác của danh sách lớp điểm danh

parent d9c71410
...@@ -58,5 +58,5 @@ export const DETAILEMAIL = 'DETAILEMAIL'; ...@@ -58,5 +58,5 @@ export const DETAILEMAIL = 'DETAILEMAIL';
export const TRASHEMAIL = 'TRASHEMAIL'; export const TRASHEMAIL = 'TRASHEMAIL';
export const LISTROLLCALL = 'LISTROLLCALL'; export const LISTROLLCALL = 'LISTROLLCALL';
export const LISTROLLCALLBYCLASS = 'LISTROLLCALLBYCLASS'; export const LISTSTUDENTROLLCALL = 'LISTSTUDENTROLLCALL';
export const DETAILROLLCALL = 'DETAILROLLCALL'; export const DETAILROLLCALL = 'DETAILROLLCALL';
...@@ -33,7 +33,7 @@ import DrawerEmailView from '../routers/drawer_email/drawerView'; ...@@ -33,7 +33,7 @@ import DrawerEmailView from '../routers/drawer_email/drawerView';
import SendEmail from '../screens/email/send'; import SendEmail from '../screens/email/send';
import DetailEmail from '../screens/email/detail'; import DetailEmail from '../screens/email/detail';
import ListRollCallView from '../screens/roll_call/'; import ListRollCallView from '../screens/roll_call/';
import ListRollCallByClass from '../screens/roll_call/list_student_roll_call/'; import ListStudentRollCall from '../screens/roll_call/list_student_roll_call';
import DetailRollCall from '../screens/roll_call/detail'; import DetailRollCall from '../screens/roll_call/detail';
const Stack = createStackNavigator(); const Stack = createStackNavigator();
...@@ -44,7 +44,7 @@ function MyStack(props) { ...@@ -44,7 +44,7 @@ function MyStack(props) {
headerStatusBarHeight: 0, headerStatusBarHeight: 0,
}} }}
headerMode={'none'} headerMode={'none'}
initialRouteName={ScreenName.TABNAVIGATOR}> initialRouteName={ScreenName.LISTSTUDENTROLLCALL}>
<Stack.Screen name={ScreenName.HOMESCREEN} component={Home} /> <Stack.Screen name={ScreenName.HOMESCREEN} component={Home} />
<Stack.Screen name={ScreenName.TABNAVIGATOR} component={TabNavigator} /> <Stack.Screen name={ScreenName.TABNAVIGATOR} component={TabNavigator} />
<Stack.Screen name={ScreenName.DETAILNOTIFICATION} component={NotificationDetail} /> <Stack.Screen name={ScreenName.DETAILNOTIFICATION} component={NotificationDetail} />
...@@ -76,7 +76,7 @@ function MyStack(props) { ...@@ -76,7 +76,7 @@ function MyStack(props) {
<Stack.Screen name={ScreenName.SENDEMAIL} component={SendEmail}/> <Stack.Screen name={ScreenName.SENDEMAIL} component={SendEmail}/>
<Stack.Screen name={ScreenName.DETAILEMAIL} component={DetailEmail}/> <Stack.Screen name={ScreenName.DETAILEMAIL} component={DetailEmail}/>
<Stack.Screen name={ScreenName.LISTROLLCALL} component={ListRollCallView}/> <Stack.Screen name={ScreenName.LISTROLLCALL} component={ListRollCallView}/>
<Stack.Screen name={ScreenName.LISTROLLCALLBYCLASS} component={ListRollCallByClass}/> <Stack.Screen name={ScreenName.LISTSTUDENTROLLCALL} component={ListStudentRollCall}/>
<Stack.Screen name={ScreenName.DETAILROLLCALL} component={DetailRollCall}/> <Stack.Screen name={ScreenName.DETAILROLLCALL} component={DetailRollCall}/>
</Stack.Navigator> </Stack.Navigator>
); );
......
import { StyleSheet, Text, View } from 'react-native' import { StyleSheet, Text, View } from 'react-native'
import R from '../../../assets/R'
const styles = StyleSheet.create({}) const styles = StyleSheet.create({
container:{
flex:1,
backgroundColor:R.colors.white,
},
body:{
flex:1,
backgroundColor:R.colors.white,
}
})
export default styles 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 styles from './style';
const DetailRollCallView = (props) => { const DetailRollCallView = (props) => {
const { } = props; const { } = props;
return ( return (
<View <View
style={{ style={styles.container}>
flex: 1, <Header title={'Thống kê: ATTT2024.P1'} isBack />
justifyContent: 'center', <View style={styles.body}>
alignItems: 'center',
}}> </View>
<TouchableOpacity>
<Text>DetailRollCall</Text>
</TouchableOpacity>
</View> </View>
); );
}; };
export default DetailRollCallView; export default DetailRollCallView;
const styles = StyleSheet.create({})
\ No newline at end of file
import React from 'react'; import React from 'react';
import {Text, View, StyleSheet} from 'react-native';
import ListStudentRollCallView from './view'; import ListStudentRollCallView from './view';
const ListStudentRollCall = (props) => { const ListStudentRollCall = (props) => {
......
import { StyleSheet, Text, View } from 'react-native' import { StyleSheet, Text, View } from 'react-native'
import React from 'react' import React from 'react'
const styles = StyleSheet.create({}) const styles = StyleSheet.create({
container:{
flex:1,
backgroundColor:R.colors.white,
},
body:{
flex:1,
backgroundColor:R.colors.white,
}
})
export default styles 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 styles from './style';
const ListStudentRollCallView = (props) => { import Header from '../../../components/Header/Header';
const { } = props; const ListStudentRollCallView = props => {
const {} = props;
return ( return (
<View <View style={styles.container}>
style={{ <Header title={'Điểm danh lớp: ATTT2024.P1'} isBack />
flex: 1, <View style={styles.body}>
justifyContent: 'center',
alignItems: 'center',
}}> </View>
<TouchableOpacity>
<Text>ListStudentRollCall</Text>
</TouchableOpacity>
</View> </View>
); );
}; };
export default ListStudentRollCallView; export default ListStudentRollCallView;
const styles = StyleSheet.create({})
\ No newline at end of file
...@@ -89,7 +89,9 @@ const ListRollCallView = props => { ...@@ -89,7 +89,9 @@ const ListRollCallView = props => {
<View style={{alignItems: 'flex-end', flex: 1}}> <View style={{alignItems: 'flex-end', flex: 1}}>
<Button <Button
title="Điểm danh" title="Điểm danh"
onPress={() => {}} onPress={() => {
navigation.navigate(SCREENNAME.LISTSTUDENTROLLCALL);
}}
containerStyle={{paddingHorizontal: 5,paddingVertical:5, borderRadius: 20}} containerStyle={{paddingHorizontal: 5,paddingVertical:5, borderRadius: 20}}
backgroundColor={R.colors.brown} backgroundColor={R.colors.brown}
textColor={R.colors.white} textColor={R.colors.white}
...@@ -102,7 +104,7 @@ const ListRollCallView = props => { ...@@ -102,7 +104,7 @@ const ListRollCallView = props => {
<Button <Button
title="Chi tiết" title="Chi tiết"
onPress={() => { onPress={() => {
navigation.navigate(SCREENNAME.LISTROLLCALLBYCLASS); navigation.navigate(SCREENNAME.DETAILROLLCALL);
}} }}
containerStyle={{ containerStyle={{
paddingHorizontal: 5, paddingHorizontal: 5,
......
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