display of the sharing link validity

This commit is contained in:
Delucse
2020-12-07 14:15:08 +01:00
parent dddb00bd79
commit b2f6b1d012
5 changed files with 40 additions and 17 deletions
-1
View File
@@ -24,7 +24,6 @@ class Project extends Component {
}
componentDidUpdate(props) {
console.log(this.props);
if(props.location.pathname !== this.props.location.pathname ||
props.match.params[`${this.props.type}Id`] !== this.props.match.params[`${this.props.type}Id`]){
if(this.props.message.msg){
+1 -1
View File
@@ -86,7 +86,7 @@ class ProjectHome extends Component {
{this.props.projects.map((project, i) => {
return (
<Grid item xs={12} sm={6} md={4} xl={3} key={i}>
<Link to={`/${data === 'Projekte' ? 'project' : 'gallery'}/${project._id}`} style={{ textDecoration: 'none', color: 'inherit' }}>
<Link to={`/${data === 'Projekte' ? 'project' : 'gallery'}/${project._id._id ? project._id._id : project._id}`} style={{ textDecoration: 'none', color: 'inherit' }}>
<Paper style={{ padding: '1rem', position: 'relative', overflow: 'hidden' }}>
<h3 style={{marginTop: 0}}>{project.title}</h3>
<Divider style={{marginTop: '1rem', marginBottom: '10px'}}/>