Skip to content

Commit

Permalink
🗑️ - Remove text prop from origin Text component (#372)
Browse files Browse the repository at this point in the history
As `tx="plan.origin"` is already being used
  • Loading branch information
guytepper authored May 31, 2024
1 parent e804ad9 commit 29016a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/screens/planner/planner-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const PlannerScreen = observer(function PlannerScreen({ navigation }: Pla

const stations = useStations()

// The datetimepicker docs says the first argument is an event, but we get a date instead
// The datetimepicker docs says the first argument is an event, but we get a date instead
// https://github.com/react-native-datetimepicker/datetimepicker#onchange-optional
const onDateChange = (date: Date) => {
routePlan.setDate(date)
Expand Down Expand Up @@ -190,7 +190,7 @@ export const PlannerScreen = observer(function PlannerScreen({ navigation }: Pla

<Text preset="header" tx="plan.title" style={SCREEN_TITLE} />

<Text preset="fieldLabel" tx="plan.origin" text="תחנת מוצא" style={{ marginBottom: spacing[1] }} />
<Text preset="fieldLabel" tx="plan.origin" style={{ marginBottom: spacing[1] }} />
<Animated.View style={{ transform: [{ scale: stationCardScale }] }}>
<StationCard
name={originData?.name}
Expand Down

0 comments on commit 29016a1

Please sign in to comment.