mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-19 17:52:45 +02:00
* fix: move admin to components and add ProjectRoles route * feat: fetch project roles and create project roles list * fix: add pagination and update tests * update projectRoles folder name Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
37 lines
794 B
TypeScript
37 lines
794 B
TypeScript
import ConfirmUserEmail from './ConfirmUserEmail/ConfirmUserEmail';
|
|
import ConfirmUserLink from './ConfirmUserLink/ConfirmUserLink';
|
|
|
|
interface IConfirmUserAddedProps {
|
|
open: boolean;
|
|
closeConfirm: () => void;
|
|
inviteLink: string;
|
|
emailSent: boolean;
|
|
}
|
|
|
|
const ConfirmUserAdded = ({
|
|
open,
|
|
closeConfirm,
|
|
emailSent,
|
|
inviteLink,
|
|
}: IConfirmUserAddedProps) => {
|
|
if (emailSent) {
|
|
return (
|
|
<ConfirmUserEmail
|
|
open={open}
|
|
closeConfirm={closeConfirm}
|
|
inviteLink={inviteLink}
|
|
/>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<ConfirmUserLink
|
|
open={open}
|
|
closeConfirm={closeConfirm}
|
|
inviteLink={inviteLink}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default ConfirmUserAdded;
|