Skip to content

Commit

Permalink
cleanup old code.
Browse files Browse the repository at this point in the history
  • Loading branch information
robol committed Nov 6, 2023
1 parent 64c2df0 commit 65b2d15
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src/processes/AddSeminar.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function MatchedSpeakersBlock({speakers, onSpeakerSelected}) {
onSpeakerSelected(x)
}

if (speakers.length == 0) {
if (speakers.length === 0) {
return <div className="my-3">
<em>Nessuna persona trovata. <br></br>Se la persona cercata non è presente in anagrafica, scrivere a <a href="mailto:[email protected]">[email protected]</a> per richiederne l'inserimento, fornendo nome, affiliazione, indirizzo e-mail.
</em>
Expand Down Expand Up @@ -172,29 +172,4 @@ function MatchedSpeakersBlock({speakers, onSpeakerSelected}) {
</div>
</div>
}
}

function SelectPersonBlock({ onCompleted, disabled, person, setPerson }) {
if (disabled) {
return <Card className="shadow mb-3">
<Card.Header>Selezione speaker: <strong>{person?.firstName} {person?.lastName}</strong></Card.Header>
</Card>
}

return <div>
<Card className="shadow mb-3">
<Card.Header>Selezione speaker</Card.Header>
<Card.Body>
<Form>
<Form.Group>
<ModelInput field="Speaker" schema={{'x-ref': 'Person'}} value={person} setValue={setPerson}></ModelInput>
</Form.Group>
</Form>
<div className="d-flex flex-row justify-content-end">
<Button className="text-end" onClick={() => onCompleted(person)} disabled={person != null}>Conferma</Button>
</div>
</Card.Body>
</Card>

</div>
}

0 comments on commit 65b2d15

Please sign in to comment.