HomeStudy initial commit
This commit is contained in:
parent
6af1383ff4
commit
e6e6a93f65
|
@ -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
|
||||
})
|
||||
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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'
|
|
@ -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) => {
|
|||
<Tab.Screen name="studentDiary" component={DiaryView} initialParams={route.params} options={{ tabBarLabel: 'Diary'}} />
|
||||
<Tab.Screen name="studentNoticeBoard" component={NoticeBoardView} initialParams={route.params} options={{ tabBarLabel: 'NoticeBoard'}} />
|
||||
<Tab.Screen name="studentQuizzes" component={QuizzesView} initialParams={route.params} options={{ tabBarLabel: 'Quizz'}}/>
|
||||
<Tab.Screen name="homestudy" component={HomeStudyList} initialParams={route.params} options={{ tabBarLabel: 'Home Study'}}/>
|
||||
</Tab.Navigator>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
import { takeEvery, call, put } from 'redux-saga/effects'
|
||||
|
||||
|
|
@ -35,6 +35,9 @@ import { watchGetPsychometricClassList, watchGetPsychometricStudentListByClass,w
|
|||
import {
|
||||
watchGetLicenseValidate, watchGetMenuList, watchGetLicenseSchoolList, watchGetLicenseSchoolDomain } from './license.saga'
|
||||
|
||||
import {
|
||||
} from './homestudy.saga'
|
||||
|
||||
export default function* root() {
|
||||
yield all([
|
||||
watchGetLogin(),
|
||||
|
|
|
@ -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<any, any>{
|
||||
|
||||
render() {
|
||||
return (<View>
|
||||
<Text>Hi</Text>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default (HomeStudyList)
|
Loading…
Reference in New Issue