Skip to content

Commit

Permalink
change(app): only allow publish as driver
Browse files Browse the repository at this point in the history
  • Loading branch information
cladel committed Jul 11, 2023
1 parent 7a10edb commit 8c39bf7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/src/components/forms/SeatsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const SeatsForm = ({ seats, setSeats, maxSeats = 8 }: SeatsFormProps) =>
alignItems: "center",
padding: 16
}}>
<AppText style={{ fontSize: 16 }}>{seats > 0 ? "Combien de places avez-vous ?" : "Combien de personnes voyagent ?"}</AppText>
{/*<AppText style={{ fontSize: 16 }}>{seats > 0 ? "Combien de places avez-vous ?" : "Combien de personnes voyagent ?"}</AppText>*/}
<Row style={{ alignItems: "center" }} spacing={16}>
<AppButton
kind="circular"
Expand Down
9 changes: 5 additions & 4 deletions app/src/screens/publish/PublishScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const VehicleStepView = ({ editable, onChange, initialValue, onRequestEdit }: St
<Column spacing={8}>
{editable && (
<Animated.View exiting={SlideOutLeft.duration(300)} entering={SlideInLeft.delay(600).duration(300).springify().damping(15)}>
<AppText style={{ ...AppStyles.title, marginVertical: 8, paddingLeft: 8, color: AppColors.white }}>Avez-vous un véhicule ?</AppText>
<AppText style={{ ...AppStyles.title, marginVertical: 8, paddingLeft: 8, color: AppColors.white }}>Combien de places avez-vous ?</AppText>
</Animated.View>
)}
{!editable && (
Expand All @@ -217,12 +217,13 @@ const VehicleStepView = ({ editable, onChange, initialValue, onRequestEdit }: St
textAlignVertical: "center",
color: AppColors.white
}}>
Je suis {seats > 0 ? "conducteur" : "passager"}
{/*Je suis {seats > 0 ? "conducteur" : "passager"}*/}
{seats} places disponibles
</AppText>
</Row>
</Animated.View>
)}
{editable && (
{/*editable && (
<Animated.View entering={FadeIn.delay(1100)} style={{ alignSelf: "center" }}>
<AppSwitchToggle
defaultSelectedValue={seats > 0}
Expand All @@ -231,7 +232,7 @@ const VehicleStepView = ({ editable, onChange, initialValue, onRequestEdit }: St
onSelectValue={() => setSeats(-seats)}
/>
</Animated.View>
)}
)*/}
{editable && (
<Animated.View entering={FadeInDown.delay(1100)}>
<Column style={{ alignSelf: "stretch" }}>
Expand Down

0 comments on commit 8c39bf7

Please sign in to comment.