add member-only public pages

This commit is contained in:
Spectralitree 2021-08-08 12:17:18 +02:00
parent 3fea63302d
commit 206236f5b9
3 changed files with 89 additions and 8 deletions

View file

@ -157,7 +157,7 @@ export default function ProfilePage(props) {
{ !member.banner || !localStorage.getItem("bottombanners") ? "" :
<BS.Image rounded className="mb-2" style={{width: '100%', maxHeight: '15rem', objectFit: 'cover'}} src={banner}/>
}
<BS.Row><BS.Col><Link to={location.pathname.substring(0, location.pathname.lastIndexOf('/'))}><BS.Button variant="primary" className="float-right">Back</BS.Button></Link></BS.Col></BS.Row>
{ props.list ? <BS.Row><BS.Col><Link to={location.pathname.substring(0, location.pathname.lastIndexOf('/'))}><BS.Button variant="primary" className="float-right">Back</BS.Button></Link></BS.Col></BS.Row> : ""}
</BS.Card.Body>
</BS.Card>
</>