Commit 8c1a9051 authored by Florent Chehab's avatar Florent Chehab
Browse files

Removed comment from UniversityGeneral

[OUT OF THE SCOPE OF THIS BRANCH I KNOW :) ]
parent 4235b060
...@@ -5,7 +5,6 @@ import compose from "recompose/compose"; ...@@ -5,7 +5,6 @@ import compose from "recompose/compose";
import { connect } from "react-redux"; import { connect } from "react-redux";
import __pick from "lodash/pick"; import __pick from "lodash/pick";
import Markdown from "../../shared/Markdown";
import Typography from "@material-ui/core/Typography"; import Typography from "@material-ui/core/Typography";
import GenericModule from "../shared/GenericModule"; import GenericModule from "../shared/GenericModule";
...@@ -26,38 +25,34 @@ const styles = theme => ({ ...@@ -26,38 +25,34 @@ const styles = theme => ({
function renderCore(rawModelData, classes, outsideData) { function renderCore(rawModelData, classes, outsideData) {
const univInfos = rawModelData; const univInfos = rawModelData;
const { name, acronym, logo, website, comment } = univInfos; const { name, acronym, logo, website } = univInfos;
const { city, country } = outsideData; const { city, country } = outsideData;
return ( return (
<div> <Grid container spacing={16} direction='row'>
<Grid container spacing={16} direction='row'> <Grid item xs={4} style={{ display: "inline-flex", alignItems: "center" }}>
<Grid item xs={4} style={{ display: "inline-flex", alignItems: "center" }}> {
logo != "" ?
<img style={{ width: "100%" }} src={logo} />
:
<PhotoSizeSelectActualIcon style={{ marginLeft: "auto", marginRight: "auto", width: "60%", height: "60%" }} />
}
</Grid>
<Grid item xs>
<Typography variant='h5'>{name}</Typography>
<Typography variant='h6'>{acronym}</Typography>
<Divider />
<Typography variant='subtitle1'>{city}, {country}</Typography>
<Typography variant='body2'> Site internet&nbsp;:{" "}
{ {
logo != "" ? website != "" ?
<img style={{ width: "100%" }} src={logo} /> <TextLink href={website}>{website}</TextLink>
: :
<PhotoSizeSelectActualIcon style={{ marginLeft: "auto", marginRight: "auto", width: "60%", height: "60%" }} /> <em>Non connu.</em>
} }
</Typography>
</Grid>
<Grid item xs>
<Typography variant='h5'>{name}</Typography>
<Typography variant='h6'>{acronym}</Typography>
<Divider />
<Typography variant='subtitle1'>{city}, {country}</Typography>
<Typography variant='body2'> Site internet&nbsp;:{" "}
{
website != "" ?
<TextLink href={website}>{website}</TextLink>
:
<em>Non connu.</em>
}
</Typography>
</Grid>
</Grid> </Grid>
<Markdown source={comment} /> </Grid>
</div>
); );
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment