diff --git a/src/frontend/src/pages/HomePage/components/ConfirmOnboardingChecklistModal.tsx b/src/frontend/src/pages/HomePage/components/ConfirmOnboardingChecklistModal.tsx new file mode 100644 index 0000000000..dd2d2adcee --- /dev/null +++ b/src/frontend/src/pages/HomePage/components/ConfirmOnboardingChecklistModal.tsx @@ -0,0 +1,53 @@ +import React from 'react'; +import { Typography, Box } from '@mui/material'; +import NERModal from '../../../components/NERModal'; +import { useCurrentUser } from '../../../hooks/users.hooks'; + +interface ConfirmOnboardingChecklistModalProps { + open: boolean; + onHide: () => void; + title?: string; +} + +const ConfirmOnboardingChecklistModal: React.FC = ({ + open, + onHide, + title = 'Confirm Action' +}) => { + const user = useCurrentUser(); + + const handleConfirm = () => { + if (user) { + user.role = 'MEMBER'; + } + onHide(); + }; + + return ( + + + + Looks like you completed everything on the onboarding checklist! + + + + You sure you want to submit? + + + + (After you submit, you will be officially onboarded into NER!) + + + + ); +}; + +export default ConfirmOnboardingChecklistModal;