From de68fd79b7f452bbfcdf843c02cc7c31add939b6 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 5 Oct 2020 20:54:36 +0000 Subject: [PATCH] Add UI for instructions to see other member's training --- webclient/src/Members.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/webclient/src/Members.js b/webclient/src/Members.js index 89f308a..06a21c3 100644 --- a/webclient/src/Members.js +++ b/webclient/src/Members.js @@ -2,7 +2,7 @@ import React, { useState, useEffect, useReducer } from 'react'; import { BrowserRouter as Router, Switch, Route, Link, useParams } from 'react-router-dom'; import './light.css'; import { Button, Container, Divider, Dropdown, Form, Grid, Header, Icon, Image, Input, Item, Menu, Message, Segment, Table } from 'semantic-ui-react'; -import { statusColor, isAdmin, BasicTable, staticUrl, requester } from './utils.js'; +import { statusColor, isAdmin, isInstructor, BasicTable, staticUrl, requester } from './utils.js'; import { NotFound, PleaseLogin } from './Misc.js'; import { AdminMemberInfo, AdminMemberPause, AdminMemberForm, AdminMemberCards, AdminMemberTraining, AdminMemberCertifications } from './AdminMembers.js'; import { AdminMemberTransactions } from './AdminTransactions.js'; @@ -154,7 +154,7 @@ export function MemberDetail(props) {
{member.preferred_name} {member.last_name}
- +

@@ -189,7 +189,11 @@ export function MemberDetail(props) { }
- + + {isInstructor(user) && !isAdmin(user) && + + } + {isAdmin(user) && }