Code cleaned
This commit is contained in:
@@ -4,28 +4,13 @@ import {
|
|||||||
View
|
View
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
|
|
||||||
import Lesson from './src/components/Lesson';
|
|
||||||
import Categories from './src/components/Categories';
|
|
||||||
import LessonCategories from './src/components/LessonCategories';
|
|
||||||
import AnatomyCard from './src/components/AnatomyCard';
|
|
||||||
import Router from './src/Router';
|
import Router from './src/Router';
|
||||||
|
|
||||||
export default class meme extends Component {
|
export default class meme extends Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<View style={{ flex: 1 }}>
|
<View style={{ flex: 1 }}>
|
||||||
{/*
|
<Router />
|
||||||
<Lesson
|
|
||||||
lessonHeaderText={'IMA LI MLIJEKA?'} lessonHeaderBackroundColor={'#7270a8'}
|
|
||||||
questions={
|
|
||||||
['Kako funkcioniše produkcija mlijeka?',
|
|
||||||
'Uspostavljanje i zadržavanje zaliha mlijeka kad beba ne doji',
|
|
||||||
'Prejak refleks otpuštanja mlijeka ili prekomjerne zalihe',
|
|
||||||
'Koje biljke izbjegavati za vrijeme dojenja']}
|
|
||||||
/>*/
|
|
||||||
}
|
|
||||||
<Router />
|
|
||||||
|
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const LessonCategories = () => {
|
|||||||
const { categoriesContainerStyle, categoriesListStyle } = styles;
|
const { categoriesContainerStyle, categoriesListStyle } = styles;
|
||||||
|
|
||||||
const onLessonSelected = (selectedLesson) => {
|
const onLessonSelected = (selectedLesson) => {
|
||||||
switch(selectedLesson){
|
switch (selectedLesson) {
|
||||||
case 'IMA LI MLIJEKA?':
|
case 'IMA LI MLIJEKA?':
|
||||||
Actions.lesson({
|
Actions.lesson({
|
||||||
lessonHeaderText: 'IMA LI MLIJEKA?',
|
lessonHeaderText: 'IMA LI MLIJEKA?',
|
||||||
|
|||||||
Reference in New Issue
Block a user