From e6e6a93f6501e9640dbc6f0d5d5ba2a29effa19e Mon Sep 17 00:00:00 2001 From: sangeetha Date: Tue, 16 Jul 2024 17:21:37 +0530 Subject: [PATCH] HomeStudy initial commit --- src/actions/homestudy.action.tsx | 11 +++++++++++ src/actions/index.tsx | 4 +++- src/actions/type.tsx | 5 +++++ src/navigation/ParentTabNavigator.tsx | 2 ++ src/sagas/homestudy.saga.tsx | 3 +++ src/sagas/index.tsx | 5 ++++- src/screens/HomeStudy/HomeStudyList.tsx | 14 ++++++++++++++ 7 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 src/actions/homestudy.action.tsx create mode 100644 src/sagas/homestudy.saga.tsx create mode 100644 src/screens/HomeStudy/HomeStudyList.tsx diff --git a/src/actions/homestudy.action.tsx b/src/actions/homestudy.action.tsx new file mode 100644 index 0000000..40f14a0 --- /dev/null +++ b/src/actions/homestudy.action.tsx @@ -0,0 +1,11 @@ +import { + GET_HOME_STUDY_LIST, GET_HOME_STUDY_LIST_SUCCESS, GET_HOME_STUDY_LIST_FAILURE + } from './type' + + /** Diary Actions */ + + export const initHomeStudyAction = (data: any) => ({ + type: GET_HOME_STUDY_LIST, + data + }) + \ No newline at end of file diff --git a/src/actions/index.tsx b/src/actions/index.tsx index 60ab698..1fad174 100644 --- a/src/actions/index.tsx +++ b/src/actions/index.tsx @@ -13,6 +13,7 @@ import * as Attendance from './attendance.action' import * as Quizzes from './quizzes.action' import * as Psychometric from './psychometric.action' import * as License from './license.action' +import * as HomeStudy from './homestudy.action' export const ActionCreators = { ...Users, @@ -28,5 +29,6 @@ export const ActionCreators = { ...Attendance, ...Quizzes, ...Psychometric, - ...License + ...License, + ...HomeStudy } diff --git a/src/actions/type.tsx b/src/actions/type.tsx index 152ca8c..022792c 100644 --- a/src/actions/type.tsx +++ b/src/actions/type.tsx @@ -381,3 +381,8 @@ export const GET_LICENSE_SCHOOLS_FAILURE = 'GET_LICENSE_SCHOOLS_FAILURE' export const GET_LICENSE_SCHOOL_DOMAIN = 'GET_LICENSE_SCHOOL_DOMAIN' export const GET_LICENSE_SCHOOL_DOMAIN_SUCCESS = 'GET_LICENSE_SCHOOL_DOMAIN_SUCCESS' export const GET_LICENSE_SCHOOL_DOMAIN_FAILURE = 'GET_LICENSE_SCHOOL_DOMAIN_FAILURE' + + +export const GET_HOME_STUDY_LIST = 'GET_HOME_STUDY_LIST' +export const GET_HOME_STUDY_LIST_SUCCESS = 'GET_HOME_STUDY_LIST_SUCCESS' +export const GET_HOME_STUDY_LIST_FAILURE = 'GET_HOME_STUDY_LIST_FAILURE' \ No newline at end of file diff --git a/src/navigation/ParentTabNavigator.tsx b/src/navigation/ParentTabNavigator.tsx index b05af9d..1edf753 100644 --- a/src/navigation/ParentTabNavigator.tsx +++ b/src/navigation/ParentTabNavigator.tsx @@ -8,6 +8,7 @@ import DiaryView from '@screens/Diary/DiaryView' //NOSONAR import StudentAttendanceView from '@screens/Attendance/StudentAttendanceView' //NOSONAR import QuizzesView from '@screens/Quizzes/QuizzesView' //NOSONAR import StudentProfile from '@screens/Student/StudentProfile' //NOSONAR +import HomeStudyList from '@screens/HomeStudy/HomeStudyList' // const ParentTabNavigator = createMaterialTopTabNavigator( // { @@ -125,6 +126,7 @@ const ParentTabNavigator = ({route, navigation} : any) => { + ); }; diff --git a/src/sagas/homestudy.saga.tsx b/src/sagas/homestudy.saga.tsx new file mode 100644 index 0000000..796dce1 --- /dev/null +++ b/src/sagas/homestudy.saga.tsx @@ -0,0 +1,3 @@ +import { takeEvery, call, put } from 'redux-saga/effects' + + diff --git a/src/sagas/index.tsx b/src/sagas/index.tsx index 8e3af73..4585c29 100644 --- a/src/sagas/index.tsx +++ b/src/sagas/index.tsx @@ -32,8 +32,11 @@ import { watchGetPsychometricClassList, watchGetPsychometricStudentListByClass,w } from './psychometric.saga' +import { + watchGetLicenseValidate, watchGetMenuList, watchGetLicenseSchoolList, watchGetLicenseSchoolDomain } from './license.saga' + import { - watchGetLicenseValidate, watchGetMenuList, watchGetLicenseSchoolList, watchGetLicenseSchoolDomain } from './license.saga' + } from './homestudy.saga' export default function* root() { yield all([ diff --git a/src/screens/HomeStudy/HomeStudyList.tsx b/src/screens/HomeStudy/HomeStudyList.tsx new file mode 100644 index 0000000..106b9bd --- /dev/null +++ b/src/screens/HomeStudy/HomeStudyList.tsx @@ -0,0 +1,14 @@ +import React from "react" +import { StyleSheet, Text, View, TouchableOpacity, Alert, FlatList, TextInput, Image, ActivityIndicator, Keyboard } from 'react-native' + +class HomeStudyList extends React.Component{ + + render() { + return ( + Hi + + ) + } +} + +export default (HomeStudyList)