Allow admins to add transactions to users
This commit is contained in:
@@ -4,7 +4,7 @@ import './light.css';
|
||||
import { Button, Container, Divider, Dropdown, Form, Grid, Header, Icon, Image, Input, Item, Menu, Message, Segment, Table } from 'semantic-ui-react';
|
||||
import { isAdmin, BasicTable, staticUrl, requester } from './utils.js';
|
||||
import { NotFound, PleaseLogin } from './Misc.js';
|
||||
import { AdminMemberInfo, AdminMemberForm, AdminMemberCards } from './Admin.js';
|
||||
import { AdminMemberInfo, AdminMemberForm, AdminMemberCards, AdminTransactions } from './Admin.js';
|
||||
|
||||
export function Members(props) {
|
||||
const [response, setResponse] = useState(false);
|
||||
@@ -134,6 +134,10 @@ export function MemberDetail(props) {
|
||||
<AdminMemberCards result={result} refreshResult={refreshResult} {...props} />
|
||||
</Segment>}
|
||||
|
||||
{isAdmin(user) && <Segment padded>
|
||||
<AdminTransactions result={result} refreshResult={refreshResult} {...props} />
|
||||
</Segment>}
|
||||
|
||||
</div>
|
||||
:
|
||||
<p>Loading...</p>
|
||||
|
||||
Reference in New Issue
Block a user