1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-10 01:16:39 +02:00
unleash.unleash/frontend/src/page/admin/users/ConfirmUserAdded/ConfirmUserEmail/ConfirmUserEmail.tsx
Fredrik Strand Oseberg 0ca753e7e5 Feat/add new user (#273)
* 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
2021-04-23 10:59:11 +02:00

34 lines
1.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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. Weve 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;