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