Skip to content

Commit

Permalink
Update applicants.$applicantId._index.tsx
Browse files Browse the repository at this point in the history
default values for project and mentor
  • Loading branch information
EverardoNava authored Mar 6, 2024
1 parent 1209add commit 4d2d531
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/routes/applicants.$applicantId._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ export default function Applicant() {

<RegularSelect
valuesList={projects}
defaultValue={applicant.projectName}

Check failure on line 398 in app/routes/applicants.$applicantId._index.tsx

View workflow job for this annotation

GitHub Actions / ʦ TypeScript

Type '{ valuesList: ProjectListOutput[]; defaultValue: string | null; name: string; label: string; onChange: (project: ProjectValue) => void; }' is not assignable to type 'IntrinsicAttributes & InputSelectProps'.
name="project"
label="Select a project"
onChange={handleSelectProject}
Expand All @@ -405,7 +406,7 @@ export default function Applicant() {
multiple={false}
style={{ margin: "1em 0" }}
options={profileFetcher.data ?? []}
value={mentorSelected?.id ? mentorSelected : null}
value={mentorSelected?.id ? mentorSelected : applicant.mentorId}

Check failure on line 409 in app/routes/applicants.$applicantId._index.tsx

View workflow job for this annotation

GitHub Actions / ʦ TypeScript

Type 'string | ProfileValue | null' is not assignable to type 'ProfileValue | null | undefined'.
isOptionEqualToValue={(option, value) => option.id === value.id}
id="mentor"
getOptionLabel={(option) => option.name}
Expand All @@ -432,7 +433,7 @@ export default function Applicant() {
)}
/>
<Grid container justifyContent="end" alignItems="center">
<Button type="submit">Hold Intern</Button>
<Button type="submit">Save Cahnges</Button>
</Grid>
</ValidatedForm>
</ModalBox>
Expand Down

0 comments on commit 4d2d531

Please sign in to comment.