diff --git a/resources/scripts/components/server/users/UsersContainer.tsx b/resources/scripts/components/server/users/UsersContainer.tsx index 527ee46b2..a66cf0395 100644 --- a/resources/scripts/components/server/users/UsersContainer.tsx +++ b/resources/scripts/components/server/users/UsersContainer.tsx @@ -3,9 +3,13 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faUserPlus } from '@fortawesome/free-solid-svg-icons/faUserPlus'; import { ServerContext } from '@/state/server'; import Spinner from '@/components/elements/Spinner'; +import { Subuser } from '@/state/server/subusers'; +import { CSSTransition } from 'react-transition-group'; export default () => { const [ loading, setLoading ] = useState(true); + const [ editSubuser, setEditSubuser ] = useState(null); + const uuid = ServerContext.useStoreState(state => state.server.data!.uuid); const subusers = ServerContext.useStoreState(state => state.subusers.data); const getSubusers = ServerContext.useStoreActions(actions => actions.subusers.getSubusers); @@ -22,7 +26,7 @@ export default () => { if (subusers.length > 0) { setLoading(false); } - }, [subusers]); + }, [ subusers ]); return (
@@ -47,10 +51,16 @@ export default () => {

{subuser.email}

- -
@@ -58,12 +68,22 @@ export default () => { )) } -
+
+ {editSubuser && + +
+

Edit {editSubuser.email}

+
+

Edit permissions here.

+
+
+
+ } ); };