address: fix translations

This commit is contained in:
2025-10-09 14:16:15 +03:00
parent ea37f439e5
commit 744b1db82d
2 changed files with 26 additions and 22 deletions

View File

@@ -31,7 +31,7 @@ export const AddressSummary = () => {
console.error("Failed to parse location data:", error);
}
},
[dispatch]
[dispatch],
);
const handleMapBottomSheetOpen = useCallback(() => {
@@ -44,7 +44,7 @@ export const AddressSummary = () => {
const initialValue = useMemo(
() => (location ? JSON.stringify(location) : ""),
[location]
[location],
);
const shouldRender = useMemo(() => orderType === "delivery", [orderType]);
@@ -56,24 +56,28 @@ export const AddressSummary = () => {
return (
<>
<Card
title={t("locationDetails")}
title={t("address.locationDetails")}
extra={
<Button
type="primary"
size="small"
onClick={handleMapBottomSheetOpen}
>
{location ? t("changeLocation") : t("selectLocation")}
{location
? t("address.changeLocation")
: t("address.selectLocation")}
</Button>
}
className={styles.addressCard}
>
{!location ? (
<div className={styles.noLocationContainer}>
<ProText type="secondary">{t("noLocationSelected")}</ProText>
<ProText type="secondary">
{t("address.noLocationSelected")}
</ProText>
<br />
<ProText type="secondary" className={styles.smallTextStyle}>
{t("clickEditToSelect")}
{t("address.clickEditToSelect")}
</ProText>
</div>
) : (