mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-10 01:16:39 +02:00
* chore: update changelog * chore: update changelog * fix: refactor AddUser * feat: add screens for email and copy * fix: remove interface * fix: admin constant in userlist * chore: fix changelog * feat: user data fetching with useSWR * feat: flesh out dialogues * fix: remove useRequest * refactor: remove redux for user admin * refactor: remove from store * refactor: userListItem * fix: change type * feat: add initial loading * fix: useLayoutEffeect in useLoading * fix: remove useEffect * fix: update snapshots * fix: remove status code * fix: remove roles from store
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import { Typography } from '@material-ui/core';
|
||
import Dialogue from '../../../../../component/common/Dialogue';
|
||
|
||
import { ReactComponent as EmailIcon } from '../../../../../icons/email.svg';
|
||
import { useStyles } from './ConfirmUserEmail.styles';
|
||
|
||
interface IConfirmUserEmailProps {
|
||
open: boolean;
|
||
closeConfirm: () => void;
|
||
}
|
||
|
||
const ConfirmUserEmail = ({ open, closeConfirm }: IConfirmUserEmailProps) => {
|
||
const styles = useStyles();
|
||
return (
|
||
<Dialogue
|
||
open={open}
|
||
title="Team member added"
|
||
primaryButtonText="Close"
|
||
onClick={closeConfirm}
|
||
>
|
||
<Typography>
|
||
A new team member has been added. We’ve sent an email on your
|
||
behalf to inform them of their new account and role. No further
|
||
steps are required.
|
||
</Typography>
|
||
<div className={styles.iconContainer}>
|
||
<EmailIcon className={styles.emailIcon} />
|
||
</div>
|
||
</Dialogue>
|
||
);
|
||
};
|
||
|
||
export default ConfirmUserEmail;
|