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) && }