-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fab3b5
commit cdee523
Showing
5 changed files
with
798 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import React from 'react'; | ||
import { Box, Button, Grid, Paper, Typography } from '@mui/material'; | ||
import { useTranslation } from 'react-i18next'; | ||
import Modal from 'src/components/common/Modal/Modal'; | ||
|
||
interface CsvImportSuccessModalProps { | ||
handleClose: () => void; | ||
} | ||
|
||
export const CsvImportSuccessModal: React.FC<CsvImportSuccessModalProps> = ({ | ||
handleClose, | ||
}) => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<Modal | ||
isOpen={true} | ||
title={t('Info')} | ||
handleClose={handleClose} | ||
size={'sm'} | ||
> | ||
<Box> | ||
<Paper | ||
elevation={3} | ||
variant="outlined" | ||
style={{ | ||
padding: '10px', | ||
marginTop: '10px', | ||
}} | ||
> | ||
<Grid | ||
container | ||
spacing={1} | ||
alignItems="center" | ||
justifyContent="space-between" | ||
> | ||
<Grid item> | ||
<Typography variant="body1"> | ||
{t( | ||
'Your CSV import has started and your contacts will be in MPDX shortly. We will email you when your import is complete.', | ||
)} | ||
</Typography> | ||
</Grid> | ||
<Grid item sx={{ width: '100%' }}> | ||
<Box | ||
sx={{ | ||
padding: '10px 15px', | ||
display: 'flex', | ||
justifyContent: 'right', | ||
width: '100%', | ||
}} | ||
> | ||
<Button | ||
onClick={handleClose} | ||
variant="contained" | ||
sx={{ | ||
bgcolor: 'mpdxBlue.main', | ||
color: 'white', | ||
height: '34px', | ||
}} | ||
> | ||
{t('Ok')} | ||
</Button> | ||
</Box> | ||
</Grid> | ||
</Grid> | ||
</Paper> | ||
</Box> | ||
</Modal> | ||
); | ||
}; |
Oops, something went wrong.