Kaynağa Gözat

misc styles

David 9 yıl önce
ebeveyn
işleme
78434029aa

+ 2 - 2
src/Router.js

@@ -6,7 +6,7 @@ import RegisterForm from './components/RegisterForm';
 import LoginForm from './components/LoginForm';
 import LiveVideo from './scenes/LiveVideo';
 import ListaCursadas from './scenes/ListaCursadas';
-import Cursada from './scenes/Cursada.js';
+import ListaClases from './scenes/ListaClases.js';
 import Clase from './scenes/Clase.js';
 import Profesor from './components/Profesor';
 
@@ -20,7 +20,7 @@ const scenes = Actions.create(
 
 		<Scene key="main">
 			<Scene key="ListaCursadas" rightTitle="Curso en vivo" onRight={ () => Actions.Live() } component={ListaCursadas} title="Cursadas" />
-			<Scene key="ViewCursada" component={Cursada} title="Clases" />
+			<Scene key="ViewCursada" component={ListaClases} title="Clases" />
 			<Scene key="ViewClase" component={Clase} title="Clase" />
 			<Scene key="ViewProf" component={Profesor} title="Profesor" />
 			<Scene key="Live" title="Curso en vivo" component={LiveVideo} />

+ 2 - 2
src/components/LoginForm.js

@@ -48,8 +48,8 @@ class LoginForm extends Component {
         <CardSection>
           <Input
             secureTextEntry
-            label="Password"
-            placeholder="password"
+            label="Clave"
+            placeholder="clave"
             value={this.props.password}
             onChangeText={this.onPasswordChange.bind(this)}
           />

+ 1 - 1
src/components/common/Input.js

@@ -25,7 +25,7 @@ const styles = {
 		paddingLeft: 5,
 		fontSize: 18,
 		lineHeight: 23,
-		flex: 2
+		flex: 3
 	},
 	LabelStyle: {
 		fontSize: 18,

+ 3 - 4
src/scenes/Cursada.js

@@ -7,7 +7,7 @@ import { cursadaFetch } from '../actions/';
 import { Card, CardSection, Button } from '../components/common/';
 import MyActionButton from '../components/ActionButton';
 
-class Cursada extends Component  {
+class ListaClases extends Component  {
 	componentWillMount() {
     this.props.cursadaFetch(this.props);
     this.createDataSource(this.props);
@@ -71,13 +71,12 @@ class Cursada extends Component  {
 				{this.renderButton(data)}
       </Card>
     );
-    //<Text>{data.profesor._id}</Text>
 	}
 
 	render() {
     const { cursada } = this.props;
 		return (
-      <View>
+      <View style={{flex:1}}>
         <CardSection>
           <Text style={{textAlign:'center', flex: 1, fontSize:18}}>{cursada.titulo}</Text>
         </CardSection>
@@ -102,4 +101,4 @@ const mapStateToProps = state => {
 	return { cursada: curCursada, clases: _.concat(activas,inactivas) };
 };
 
-export default connect(mapStateToProps, { cursadaFetch })(Cursada);
+export default connect(mapStateToProps, { cursadaFetch })(ListaClases);

+ 3 - 5
src/scenes/ListaCursadas.js

@@ -36,11 +36,9 @@ class ListaCursadas extends Component  {
 		      <ListView
 		        enableEmptySections
 		        dataSource={this.dataSource}
-		        renderRow={this.renderRow}>
-	
-			</ListView>
-			<MyActionButton />
-		</View>	
+		        renderRow={this.renderRow} />
+					<MyActionButton />
+		</View>
 		);
 	}
 };