Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2816 confirm onboarding checklist modal #3090

Open
wants to merge 3 commits into
base: feature/recruitment_and_onboarding
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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<ConfirmOnboardingChecklistModalProps> = ({
open,
onHide,
title = 'Confirm Action'
}) => {
const user = useCurrentUser();

const handleConfirm = () => {
if (user) {
user.role = 'MEMBER';
}
onHide();
};

return (
<NERModal open={open} onHide={onHide} title={title} onSubmit={handleConfirm}>
<Box
sx={{
textAlign: 'center',
padding: '1.5rem',
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;
Loading