Skip to content

Commit

Permalink
clarified side bar by moving usefull links + clarified followed assoc…
Browse files Browse the repository at this point in the history
…iations in career
  • Loading branch information
noeamiot committed Mar 3, 2020
1 parent 02e137c commit 89b0545
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
56 changes: 28 additions & 28 deletions resources/assets/react/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,34 @@ class Sidebar extends React.Component {
</NavLink>
</div>

<div className="sidebar-group">
<h6 className="sidebar-header d-hover-zone">
RACCOURCIS{' '}
<NavLink
className="float-right d-hover fas fa-cog"
style={{ display: 'none' }}
to="/settings/sidebar/shortcuts"
/>
</h6>
{isAuthenticated && user.types.contributorBde && (
<NavLink className="sidebar-link" to="/bookings">
<FontAwesomeIcon icon="person-booth" /> Réservations
</NavLink>
)}
<NavLink className="sidebar-link" to="/services">
<FontAwesomeIcon icon="concierge-bell" /> Services
</NavLink>
<NavLink className="sidebar-link" to="/assos">
<FontAwesomeIcon icon="hands-helping" /> Associations
</NavLink>
<NavLink className="sidebar-link" to="/partners">
<FontAwesomeIcon icon="handshake" /> Partenaires
</NavLink>
<NavLink className="sidebar-link" to="/groupes" style={{ display: 'none' }}>
<FontAwesomeIcon icon="users" /> Groupes
</NavLink>
</div>

<div className="sidebar-group">
<h6 className="sidebar-header d-hover-zone">
LIENS UTILES{' '}
Expand Down Expand Up @@ -154,34 +182,6 @@ class Sidebar extends React.Component {
</a>
</div>

<div className="sidebar-group">
<h6 className="sidebar-header d-hover-zone">
RACCOURCIS{' '}
<NavLink
className="float-right d-hover fas fa-cog"
style={{ display: 'none' }}
to="/settings/sidebar/shortcuts"
/>
</h6>
{isAuthenticated && user.types.contributorBde && (
<NavLink className="sidebar-link" to="/bookings">
<FontAwesomeIcon icon="person-booth" /> Réservations
</NavLink>
)}
<NavLink className="sidebar-link" to="/services">
<FontAwesomeIcon icon="concierge-bell" /> Services
</NavLink>
<NavLink className="sidebar-link" to="/assos">
<FontAwesomeIcon icon="hands-helping" /> Associations
</NavLink>
<NavLink className="sidebar-link" to="/partners">
<FontAwesomeIcon icon="handshake" /> Partenaires
</NavLink>
<NavLink className="sidebar-link" to="/groupes" style={{ display: 'none' }}>
<FontAwesomeIcon icon="users" /> Groupes
</NavLink>
</div>

{isAuthenticated && services.length > 0 && (
<div className="sidebar-group">
<h6 className="sidebar-header d-hover-zone">
Expand Down
4 changes: 2 additions & 2 deletions resources/assets/react/screens/Profile/AssociativeCareer.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AssociativeCareerScreen extends React.Component {
semesters.forEach(semester => {
if (associativeSemesters[semester.id] === undefined) {
actions.user.assos
.all({ cemetery: true, semester: semester.id, only: 'joined' })
.all({ cemetery: true, semester: semester.id, only: 'joined,followed' })
.payload.then(({ data }) => {
if (data.length > 0) {
this.addNewAssociativeSemester(semester.id, data);
Expand Down Expand Up @@ -87,7 +87,7 @@ class AssociativeCareerScreen extends React.Component {
key={asso.id + semester.id}
name={asso.name}
shortname={asso.shortname}
additionalInfo={role ? role.name : ''}
additionalInfo={role ? role.name : 'Association suivie'}
image={asso.image}
login={asso.parent ? asso.parent.login : asso.login}
deleted={asso.in_cemetery_at != null}
Expand Down

0 comments on commit 89b0545

Please sign in to comment.