Waseel: driver app, dispatch, POI suggestions, map fixes
This commit is contained in:
@@ -4,6 +4,7 @@ import { AppState, Text, TouchableOpacity, View } from "react-native";
|
||||
|
||||
import { InputField } from "@/components/input-field";
|
||||
import { icons } from "@/constants";
|
||||
import { tr } from "@/lib/i18n";
|
||||
|
||||
// `\b` won't match between two digits, so a longer run like an order number
|
||||
// never yields a false positive.
|
||||
@@ -33,7 +34,7 @@ type OtpFieldProps = {
|
||||
* 3. Typing it.
|
||||
*/
|
||||
export const OtpField = ({
|
||||
label = "Code",
|
||||
label = tr("components.otp.code"),
|
||||
value,
|
||||
onChange,
|
||||
onComplete,
|
||||
@@ -105,7 +106,7 @@ export const OtpField = ({
|
||||
<InputField
|
||||
label={label}
|
||||
icon={icons.lock}
|
||||
placeholder="123456"
|
||||
placeholder={tr("components.otp.codePlaceholder")}
|
||||
value={value}
|
||||
onChangeText={handleChange}
|
||||
keyboardType="number-pad"
|
||||
@@ -125,7 +126,7 @@ export const OtpField = ({
|
||||
className="self-start mt-2 rounded-full bg-primary-500/10 px-4 py-2"
|
||||
>
|
||||
<Text className="text-primary-500 font-JakartaSemiBold text-sm">
|
||||
Paste code from Gmail
|
||||
{tr("components.otp.pasteCode")}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user