Get Email for Active System Owners

This commit is contained in:
Luke Berndt
2023-06-25 21:58:30 -04:00
parent 72798e4494
commit 590607ac10
6 changed files with 85 additions and 1 deletions

View 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;