Skip to content

Commit

Permalink
Remove mentor name from the mentee application (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjana0823 authored Sep 29, 2024
1 parent 937b748 commit d21547a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/pages/MenteeRegistration/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { API_URL } from '../../constants';
import useProfile from '../../hooks/useProfile';
import { MenteeApplicationSchema } from '../../schemas';
import { MenteeApplication } from '../../types';
import useMentor from '../../hooks/useMentor';

const steps = [
{
Expand Down Expand Up @@ -52,7 +51,6 @@ const MenteeRegistration: React.FC = () => {
const [currentStep, setCurrentStep] = useState(0);
const [image, setImage] = useState<File | null>(null);
const [profilePic, setProfilePic] = useState(user?.image_url);
const { data: mentor, isLoading: isMentorLoading } = useMentor(mentorId);

const handleProfilePicChange = (event: ChangeEvent<HTMLInputElement>) => {
if (event.target.files != null) {
Expand Down Expand Up @@ -326,17 +324,6 @@ const MenteeRegistration: React.FC = () => {
{currentStep === 2 && (
<>
<div className="text-xl font-medium mb-2">Mentee Application</div>
<div className="mb-4">
<label className="block text-sm font-medium text-gray-600">
Mentor
</label>
<p>
{isMentorLoading &&
`${mentor?.application?.firstName ?? ''} ${
mentor?.application?.lastName ?? ''
}`}
</p>
</div>
<FormInput
type="text"
placeholder=""
Expand Down

0 comments on commit d21547a

Please sign in to comment.