mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-19 13:33:13 +02:00
Add feature to send share with email
This commit is contained in:
@@ -16,13 +16,21 @@ import toast from "../../utils/toast.util";
|
||||
const showCompletedUploadModal = (
|
||||
modals: ModalsContextProps,
|
||||
link: string,
|
||||
expiresAt: string
|
||||
expiresAt: string,
|
||||
mode: "email" | "standard"
|
||||
) => {
|
||||
return modals.openModal({
|
||||
closeOnClickOutside: false,
|
||||
withCloseButton: false,
|
||||
closeOnEscape: false,
|
||||
title: <Title order={4}>Share ready</Title>,
|
||||
title: (
|
||||
<Group grow direction="column" spacing={0}>
|
||||
<Title order={4}>Share ready</Title>
|
||||
{mode == "email" && (
|
||||
<Text size="sm"> Emails were sent to the to invited users.</Text>
|
||||
)}
|
||||
</Group>
|
||||
),
|
||||
children: <Body link={link} expiresAt={expiresAt} />,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user