import { Card, CardText, CardTitle } from 'react-toolbox';
import cx from 'classnames';

import style from './style';

function Allocation({ subject, location, teacher, lecture }) {
    const allocation = cx(style.allocation, {
       [style.lecture]: lecture
    });
    
    return (
        <Card className={allocation}>
            <CardTitle
                title={subject}
                subtitle={location}
                className={style.title}
            />
            <CardText
                children={teacher}
                className={style.text}
            />
        </Card>
    );
}

export default Allocation;
@@ -138,25 +138,27 @@
 n(%7B 
-subject, location
+activity, classroom
 , te
@@ -369,15 +369,16 @@
 le=%7B
-subject
+activity
 %7D%0A  
@@ -401,24 +401,25 @@
 btitle=%7B
-location
+classroom
 %7D%0A      

rename allocation props