Skip to content

Commit

Permalink
Merge pull request #18 from ateliware/bugfix/ride-form-fields
Browse files Browse the repository at this point in the history
Bugfix: fix ride offer form
  • Loading branch information
williamsimionatto authored May 9, 2024
2 parents 79bf4d4 + ebb05e9 commit 669cd63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/ItemList/ItemList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function Item(props: ItemProps) {

return (
<div
className="box-shadow-medium d-flex p-s-200"
className={`box-shadow-medium d-flex p-s-200 ${props.route && 'pointer'}`}
onClick={() => props.route && navigate(props.route)}
>
<div className="col-5 p-s-100">
Expand Down
13 changes: 3 additions & 10 deletions src/pages/RideOfferPage/RideOffer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export default function RideOfferPage() {
title={'Modelo Veículo'}
description={'Marca / Placa'}
icon={'directions_car'}
route={'/volunteer'}
/>
</>,
]}
Expand All @@ -62,6 +61,7 @@ export default function RideOfferPage() {
label="Origem"
value=""
error={!!errors.origin}
isSearchable={true}
caption={errors.origin?.message as string}
/>
<Select
Expand All @@ -70,21 +70,14 @@ export default function RideOfferPage() {
label="Destino"
value=""
error={!!errors.destination}
isSearchable={true}
caption={errors.destination?.message as string}
/>
<Input
className="mb-s-200"
form={register('meetingPoint', { required: 'Obrigatório' })}
label="Ponto de encontro"
type="date"
error={!!errors.meetingPoint}
caption={errors.meetingPoint?.message as string}
/>
<Input
className="mb-s-200"
form={register('meetingPoint', { required: 'Obrigatório' })}
label="Ponto de encontro"
type="date"
type="text"
error={!!errors.meetingPoint}
caption={errors.meetingPoint?.message as string}
/>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/SignupPage/Signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export default function SignupPage() {
label="Estado"
value=""
error={!!errors.state}
isSearchable={true}
caption={errors.state?.message as string}
/>
<Select
Expand All @@ -135,6 +136,7 @@ export default function SignupPage() {
label="Cidade"
value=""
error={!!errors.city}
isSearchable={true}
caption={errors.city?.message as string}
/>
<hr className="mt-s-400 w-100 bg-neutral-60" />
Expand Down

0 comments on commit 669cd63

Please sign in to comment.