Skip to content

Commit

Permalink
Fix missing url prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoff Kendal committed Feb 1, 2024
1 parent 8f2c150 commit 790a47e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/AdminView.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const AdminView = ({ groupCode, onUpdateLogin }) => {
<span className={`badge text-light ${group.vehicle_used === 0 ? 'bg-secondary' : parseInt(group.vehicle) === parseInt(group.vehicle_used) ? 'bg-success' : 'bg-primary'}`}>{group.vehicle_used} / {group.vehicle}</span>
</td>
<td>
<Link to={`/groups/edit/${group.group_id}`} className="btn btn-sm btn-outline-dark">
<Link to={`/accreditation/groups/edit/${group.group_id}`} className="btn btn-sm btn-outline-dark">
<i className="fa fa-edit"></i> Edit
</Link>
{' '}
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/UserView.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const UserView = ({ groupCode }) => {
<div className="card-body">
<div className="card-text">
{generateTickets('adult')}
{(groupInfo.adult_used < groupInfo.adult) && <div><br /><Link to="/add/adult" className='btn btn-sm btn-outline-dark'><i className='fa fa-plus'></i> Add</Link></div>}
{(groupInfo.adult_used < groupInfo.adult) && <div><br /><Link to="/accreditation/add/adult" className='btn btn-sm btn-outline-dark'><i className='fa fa-plus'></i> Add</Link></div>}
</div>
</div>
</div>
Expand All @@ -128,7 +128,7 @@ const UserView = ({ groupCode }) => {
<div className="card-body">
<div className="card-text">
{generateTickets('child')}
{(groupInfo.child_used < groupInfo.child) && <div><br /><Link to="/add/child" className='btn btn-sm btn-outline-dark'><i className='fa fa-plus'></i> Add</Link></div>}
{(groupInfo.child_used < groupInfo.child) && <div><br /><Link to="/accreditation/add/child" className='btn btn-sm btn-outline-dark'><i className='fa fa-plus'></i> Add</Link></div>}
</div>
</div>
</div>
Expand All @@ -140,7 +140,7 @@ const UserView = ({ groupCode }) => {
<div className="card-body">
<div className="card-text">
{generateVehicles()}
{(groupInfo.vehicle_used < groupInfo.vehicle) && <div><br /><Link to="/add/vehicle" className='btn btn-sm btn-outline-dark'><i className='fa fa-plus'></i> Add</Link></div>}
{(groupInfo.vehicle_used < groupInfo.vehicle) && <div><br /><Link to="/accreditation/add/vehicle" className='btn btn-sm btn-outline-dark'><i className='fa fa-plus'></i> Add</Link></div>}
</div>
</div>
</div>
Expand Down

0 comments on commit 790a47e

Please sign in to comment.