drawernavigation and instantfeedback time fixes

This commit is contained in:
vinoth 2024-12-25 11:09:00 +05:30
parent 0e0eba6a41
commit 2717ef7289
7 changed files with 18 additions and 18 deletions

View File

@ -78,14 +78,14 @@ const DrawerNavigator = () => {
<Drawer.Screen name="ChangePassword" component={ChangePassword} />
<Drawer.Screen name="School" component={SchoolView} />
<Drawer.Screen name="SchoolUpdate" component={SchoolUpdate} />
<Drawer.Screen name="Class" component={ClassStackNavigator} />
<Drawer.Screen name="Class" component={ClassView} />
<Drawer.Screen name="TeacherAttendance" component={TeacherAttendance} />
<Drawer.Screen name="Pscyometric" component={StudentListPsychometric} />
{/* <Drawer.Screen name="ClassCreate" component={ClassCreate} /> */}
{/* <Drawer.Screen name="ClassUpdate" component={ClasslUpdate} /> */}
<Drawer.Screen name="TeacherView" component={TeeacherStackNavigator} />
{/* <Drawer.Screen name="TeacherCreate" component={TeacherCreate} />
<Drawer.Screen name="TeacherUpdate" component={TeacherUpdate} /> */}
<Drawer.Screen name="ClassCreate" component={ClassCreate} />
<Drawer.Screen name="ClassUpdate" component={ClasslUpdate} />
<Drawer.Screen name="TeacherView" component={TeacherView} />
<Drawer.Screen name="TeacherCreate" component={TeacherCreate} />
<Drawer.Screen name="TeacherUpdate" component={TeacherUpdate} />
<Drawer.Screen name="TeacherInfo" component={TeacherInfo} />
</Drawer.Navigator>
);

View File

@ -173,7 +173,7 @@ class Home extends React.Component<any, any> {
const classDataInfo: any = JSON.parse(JSON.stringify(classData))
classDataInfo['academic_year'] = this.state.academicYear.toString()
classDataInfo['name'] = moment().format('MMMM Do YYYY, h:mm:ss a').toString()
classDataInfo['name'] = moment().format('MMMM Do YYYY, h:mm:ss A').toString()
classDataInfo['topics'] = "Feedback"
if (studentList.data) {
if (studentList.data.length) {

View File

@ -128,7 +128,7 @@ class InstantFeedbackCreate extends React.Component<any, any>{
}
render() {
const defaultFeedbackName: any = moment().format('MMMM Do YYYY, h:mm:ss a').toString()
const defaultFeedbackName: any = moment().format('MMMM Do YYYY, h:mm:ss A').toString()
return (<View style={[AppStyles.containerWoPadding, {}]}>

View File

@ -60,7 +60,7 @@ class TeacherCreate extends React.Component<any, any>{
componentDidUpdate() {
if (this.props.data.hasOwnProperty('status')) {
if (this.props.data.status) {
this.props.navigation.navigate('Teacher')
this.props.navigation.navigate('TeacherView')
} else {
/** Formik Errors on submit */
if (this.formikActions) {
@ -75,7 +75,7 @@ class TeacherCreate extends React.Component<any, any>{
}
onCancel = () => {
this.props.navigation.navigate("Teacher")
this.props.navigation.navigate("TeacherView")
}
onTeacherSubmit = (data: any, actions: any) => {

View File

@ -58,7 +58,7 @@ class TeacherUpdate extends React.Component<any, any>{
getTeacherDetail({ teacher_id: route.params.teacher_id, token: this.token })
this.props.initTeacher()
} else {
navigation.navigate("Teacher")
navigation.navigate("TeacherView")
}
} else {
navigation.navigate('signin')
@ -68,7 +68,7 @@ class TeacherUpdate extends React.Component<any, any>{
componentDidUpdate() {
if (this.props.data.hasOwnProperty('status')) {
if (this.props.data.status) {
this.props.navigation.navigate('Teacher')
this.props.navigation.navigate('TeacherView')
} else {
/** Formik Errors on submit */
if (this.formikActions) {
@ -83,7 +83,7 @@ class TeacherUpdate extends React.Component<any, any>{
}
onCancel = () => {
this.props.navigation.navigate("Teacher")
this.props.navigation.navigate("TeacherView")
}
onTeacherUpdate = (data: any, actions: any) => {
@ -113,7 +113,7 @@ class TeacherUpdate extends React.Component<any, any>{
if (this.props.info.status) {
firstname = this.props.route.params.data.firstname
lastname = this.props.route.params.data.lastname
gender= this.props.route.params.data.gender,
gender= this.props.info.data.gender,
phoneNumber = this.props.route.params.data.phone_number
emailId = this.props.route.params.data.email_id
imageInput = this.props.route.params.data.image,

View File

@ -46,7 +46,7 @@ class ClassCreate extends React.Component<any, any>{
componentDidUpdate() {
if (this.props.data.hasOwnProperty('status')) {
if (this.props.data.status) {
this.props.navigation.navigate('ClassView')
this.props.navigation.navigate('Class')
} else {
/** Formik Errors on submit */
if(this.formikActions){
@ -61,7 +61,7 @@ class ClassCreate extends React.Component<any, any>{
}
onCancel = () => {
this.props.navigation.navigate("ClassView")
this.props.navigation.navigate("Class")
}
onSelectChange = (event: any, action: any, setFieldValue: any) => {

View File

@ -49,7 +49,7 @@ class ClasslUpdate extends React.Component<any, any>{
componentDidUpdate() {
if (this.props.data.hasOwnProperty('status')) {
if (this.props.data.status) {
this.props.navigation.navigate('ClassView')
this.props.navigation.navigate('Class')
} else {
/** Formik Errors on submit */
if (this.formikActions) {
@ -64,7 +64,7 @@ class ClasslUpdate extends React.Component<any, any>{
}
onCancel = () => {
this.props.navigation.navigate("ClassView")
this.props.navigation.navigate("Class")
}
onSelectChange = (event: any, action: any, setFieldValue: any) => {