Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Boyadjie committed Jan 11, 2024
1 parent 8760532 commit bfa986c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/LevelChoice/LevelPopup/LevelPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ type LevelChoicePopupProps = {
};

const LevelChoicePopup: React.FC<LevelChoicePopupProps> = ({handleClose}) => {
const {setLevelChoice, setGoalChoice, levelChoice, goalChoice} = useLevelChoice();
const {setLevelChoice, setGoalChoice, levelChoice, goalChoice} =
useLevelChoice();
const [levelSelected, setLevelSelected] = useState<Level>(levelChoice);
const [goalSelected, setGoalSelected] = useState<Goal>(goalChoice);

const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault()
event.preventDefault();
setLevelChoice(levelSelected);
setGoalChoice(goalSelected)
setGoalChoice(goalSelected);
handleClose();
};

Expand Down Expand Up @@ -83,7 +84,7 @@ const LevelChoicePopup: React.FC<LevelChoicePopupProps> = ({handleClose}) => {
Expatrié
</label>
</div>
<input type="submit" value="Valider"/>
<input type="submit" value="Valider" />
</form>
</div>
);
Expand Down

0 comments on commit bfa986c

Please sign in to comment.