-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…irmOnboardingChecklist-modal #2816 confirm onboarding checklist modal
- Loading branch information
Showing
8 changed files
with
132 additions
and
32 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
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
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
45 changes: 45 additions & 0 deletions
45
src/frontend/src/pages/HomePage/components/ConfirmOnboardingChecklistModal.tsx
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,45 @@ | ||
import React from 'react'; | ||
import { Typography, Box } from '@mui/material'; | ||
import NERModal from '../../../components/NERModal'; | ||
|
||
interface ConfirmOnboardingChecklistModalProps { | ||
open: boolean; | ||
onHide: () => void; | ||
onConfirm: () => void; | ||
title?: string; | ||
message?: string; | ||
} | ||
|
||
const ConfirmOnboardingChecklistModal: React.FC<ConfirmOnboardingChecklistModalProps> = ({ | ||
open, | ||
onHide, | ||
onConfirm, | ||
title = 'Confirm Action' | ||
}) => { | ||
return ( | ||
<NERModal open={open} onHide={onHide} title={title} onSubmit={onConfirm}> | ||
<Box | ||
sx={{ | ||
textAlign: 'center', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center' | ||
}} | ||
> | ||
<Typography sx={{ marginBottom: '1rem', fontSize: '1.2rem', fontWeight: 'bold' }}> | ||
Looks like you completed everything on the onboarding checklist! | ||
</Typography> | ||
|
||
<Typography sx={{ marginBottom: '1rem', fontSize: '1.2rem', fontWeight: 'bold' }}> | ||
You sure you want to submit? | ||
</Typography> | ||
|
||
<Typography sx={{ marginBottom: '1.5rem', fontSize: '0.9rem', color: 'darkgray', fontStyle: 'italic' }}> | ||
(After you submit, you will be officially onboarded into NER!) | ||
</Typography> | ||
</Box> | ||
</NERModal> | ||
); | ||
}; | ||
|
||
export default ConfirmOnboardingChecklistModal; |
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