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="ChangePassword" component={ChangePassword} />
<Drawer.Screen name="School" component={SchoolView} /> <Drawer.Screen name="School" component={SchoolView} />
<Drawer.Screen name="SchoolUpdate" component={SchoolUpdate} /> <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="TeacherAttendance" component={TeacherAttendance} />
<Drawer.Screen name="Pscyometric" component={StudentListPsychometric} /> <Drawer.Screen name="Pscyometric" component={StudentListPsychometric} />
{/* <Drawer.Screen name="ClassCreate" component={ClassCreate} /> */} <Drawer.Screen name="ClassCreate" component={ClassCreate} />
{/* <Drawer.Screen name="ClassUpdate" component={ClasslUpdate} /> */} <Drawer.Screen name="ClassUpdate" component={ClasslUpdate} />
<Drawer.Screen name="TeacherView" component={TeeacherStackNavigator} /> <Drawer.Screen name="TeacherView" component={TeacherView} />
{/* <Drawer.Screen name="TeacherCreate" component={TeacherCreate} /> <Drawer.Screen name="TeacherCreate" component={TeacherCreate} />
<Drawer.Screen name="TeacherUpdate" component={TeacherUpdate} /> */} <Drawer.Screen name="TeacherUpdate" component={TeacherUpdate} />
<Drawer.Screen name="TeacherInfo" component={TeacherInfo} /> <Drawer.Screen name="TeacherInfo" component={TeacherInfo} />
</Drawer.Navigator> </Drawer.Navigator>
); );

View File

@ -173,7 +173,7 @@ class Home extends React.Component<any, any> {
const classDataInfo: any = JSON.parse(JSON.stringify(classData)) const classDataInfo: any = JSON.parse(JSON.stringify(classData))
classDataInfo['academic_year'] = this.state.academicYear.toString() 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" classDataInfo['topics'] = "Feedback"
if (studentList.data) { if (studentList.data) {
if (studentList.data.length) { if (studentList.data.length) {

View File

@ -128,7 +128,7 @@ class InstantFeedbackCreate extends React.Component<any, any>{
} }
render() { 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, {}]}> return (<View style={[AppStyles.containerWoPadding, {}]}>

View File

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

View File

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

View File

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