Code cleaned

This commit is contained in:
MedihaZukic
2017-09-23 22:00:48 +02:00
parent 2db958569e
commit 4e2a152598
2 changed files with 2 additions and 17 deletions

View File

@@ -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>
); );
} }

View File

@@ -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?',