mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 16:57:39 -05:00
Get Email for Active System Owners
This commit is contained in:
37
admin/src/ActiveUsers/ActiveUsers.js
Normal file
37
admin/src/ActiveUsers/ActiveUsers.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import {
|
||||
Container,
|
||||
Header,
|
||||
Table,
|
||||
Icon
|
||||
} from "semantic-ui-react";
|
||||
import { useGetActiveUsersQuery, } from '../features/api/apiSlice'
|
||||
|
||||
|
||||
|
||||
// ----------------------------------------------------
|
||||
const ActiveUsers = () => {
|
||||
const { data: users, isSuccess } = useGetActiveUsersQuery();
|
||||
|
||||
|
||||
//https://stackoverflow.com/questions/36559661/how-can-i-dispatch-from-child-components-in-react-redux
|
||||
//https://stackoverflow.com/questions/42597602/react-onclick-pass-event-with-parameter
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Container>
|
||||
<Header as="h1">Email of Active Users</Header>
|
||||
|
||||
|
||||
{users &&
|
||||
users.map((user) =>
|
||||
|
||||
<span>{user}, </span>
|
||||
)}
|
||||
|
||||
</Container>
|
||||
</div>
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
export default ActiveUsers;
|
||||
Reference in New Issue
Block a user