David 9 éve
szülő
commit
8ca3b936f2

+ 1 - 0
src/components/common/Card.js

@@ -17,6 +17,7 @@ const styles = {
     marginLeft: 10,
     marginRight: 10,
     marginTop: 10,
+	marginBottom: 1,
 	padding: 5
   }
 };

+ 1 - 2
src/scenes/Clase.js

@@ -83,8 +83,7 @@ const styles = {
 	},
 	container: {
 		flex: 1,
-		justifyContent: 'center',
-		backgroundColor: '#F5FCFF',
+		justifyContent: 'center'
 	}
 };
 

+ 19 - 19
src/scenes/LSListaClases.js

@@ -41,23 +41,23 @@ class LSListaClases extends Component {
 
 		return (
 			<Card>
-			<CardSection>
-			<Text>{ data.titulo}</Text>
-			</CardSection>
+				<CardSection>
+					<Text>{data.titulo}</Text>
+				</CardSection>
 
-			<CardSection>
-			<Text style={{ flex: 1 }}>Profesor:</Text>
-			<Text style={{ flex: 1, fontWeight: '600' }}>
-			{ data.profesor.nombre} { data.profesor.apellido}
-			</Text>
-			</CardSection>
+				<CardSection>
+					<Text style={{ flex: 1 }}>Profesor:</Text>
+					<Text style={{ flex: 1, fontWeight: '600' }}>
+						{data.profesor.nombre} {data.profesor.apellido}
+					</Text>
+				</CardSection>
 
-			<CardSection>
-			<Text style={{ flex: 1 }}>Fecha:</Text>
-			<Text style={{ flex: 1 }}>{ fecha}</Text>
-			</CardSection>
+				<CardSection>
+					<Text style={{ flex: 1 }}>Fecha:</Text>
+					<Text style={{ flex: 1 }}>{fecha}</Text>
+				</CardSection>
 
-			{ this.renderButton(data)}
+				{this.renderButton(data)}
 			</Card>
 		);
 	}
@@ -65,11 +65,11 @@ class LSListaClases extends Component {
 	render() {
 		return (
 			<View style={{ flex: 1 }}>
-			<ListView
-			enableEmptySections
-			dataSource={this.dataSource}
-			renderRow={this.renderRow.bind(this)}
-			/>
+				<ListView
+				enableEmptySections
+				dataSource={this.dataSource}
+				renderRow={this.renderRow.bind(this)}
+				/>
 			</View>
 		);
 	}

+ 2 - 2
src/scenes/ListaClases.js

@@ -50,9 +50,9 @@ class ListaClases extends Component {
 		const fecha = moment(data.fecha).local().format('DD/MM/YY');
 
 		return (
-			<Card>
+			<Card style={{backgroundColor:'#fff'}}>
 			<CardSection>
-			<Text>{ data.titulo}</Text>
+			<Text>{data.titulo}</Text>
 			</CardSection>
 
 			<CardSection>

+ 1 - 1
src/scenes/ListaCursadas.js

@@ -36,7 +36,7 @@ class ListaCursadas extends Component {
 			enableEmptySections
 			dataSource={this.dataSource}
 			renderRow={this.renderRow}
-			style={{backgroundColor: '#eee'}}
+			style={{backgroundColor: '#eee',paddingBottom:10}}
 			/>
 		);
 	}