Skip to content

Commit c4554b2

Browse files
authored
Merge pull request #286 from map-of-pi/fix/seller-reg-default-retail-name
Approved (1).
2 parents 64d5f1e + 322d4ec commit c4554b2

File tree

7 files changed

+1
-9
lines changed

7 files changed

+1
-9
lines changed

messages/en-GB.json

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
},
5656
"SELLER_ADVANCED_SETTINGS_LABEL": "Advanced Seller Settings",
5757
"SELLER_RETAIL_OUTLET_NAME": "Retail outlet name",
58-
"SELLER_RETAIL_OUTLET_PLACEHOLDER": "Name of your shop",
5958
"SELLER_ADDRESS_LOCATION_LABEL": "Address or where selling",
6059
"SELLER_ADDRESS_LOCATION_PLACEHOLDER": "Help your buyers find you by adding address or a description of where you are selling",
6160
"SELLER_SETTINGS_LABEL": "Seller Settings",

messages/en.json

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
},
5656
"SELLER_ADVANCED_SETTINGS_LABEL": "Advanced Seller Settings",
5757
"SELLER_RETAIL_OUTLET_NAME": "Retail outlet name",
58-
"SELLER_RETAIL_OUTLET_PLACEHOLDER": "Name of your shop",
5958
"SELLER_ADDRESS_LOCATION_LABEL": "Address or where selling",
6059
"SELLER_ADDRESS_LOCATION_PLACEHOLDER": "Help your buyers find you by adding address or a description of where you are selling",
6160
"SELLER_SETTINGS_LABEL": "Seller Settings",

messages/es.json

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
},
5656
"SELLER_ADVANCED_SETTINGS_LABEL": "Configuración Avanzada del Vendedor",
5757
"SELLER_RETAIL_OUTLET_NAME": "Nombre del punto de venta",
58-
"SELLER_RETAIL_OUTLET_PLACEHOLDER": "Nombre de tu tienda",
5958
"SELLER_ADDRESS_LOCATION_LABEL": "Dirección o lugar de venta",
6059
"SELLER_ADDRESS_LOCATION_PLACEHOLDER": "Ayuda a tus compradores a encontrarte agregando una dirección o una descripción de dónde estás vendiendo",
6160
"SELLER_SETTINGS_LABEL": "Configuración del Vendedor",

messages/ewe-BJ.json

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
},
5656
"SELLER_ADVANCED_SETTINGS_LABEL": "Tsiteyɔnu Nusrɔ̃ Me ɖoɖo",
5757
"SELLER_RETAIL_OUTLET_NAME": "Nukunu nye reta tso hã",
58-
"SELLER_RETAIL_OUTLET_PLACEHOLDER": "Ŋkɔnye tsɔ ƒe nye ame du",
5958
"SELLER_ADDRESS_LOCATION_LABEL": "Duɖuɖu kple wò nɔ ɖa xɔxɔ me",
6059
"SELLER_ADDRESS_LOCATION_PLACEHOLDER": "Nu tsɔ agbalẽ la yi be wò nu fia wò dzi be wò dzoe fɔ nuɖe ɖo nyɔnu me, ekema wò to gbɔ me kpɔ wo",
6160
"SELLER_SETTINGS_LABEL": "Ɖe le Adesɔ",

messages/hau-NG.json

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
},
5656
"SELLER_ADVANCED_SETTINGS_LABEL": "Saitunan Ci Gaban Mai Siyarwa",
5757
"SELLER_RETAIL_OUTLET_NAME": "Sunan mashaya",
58-
"SELLER_RETAIL_OUTLET_PLACEHOLDER": "Sunan shagonka",
5958
"SELLER_ADDRESS_LOCATION_LABEL": "Adireshi ko inda kake siyarwa",
6059
"SELLER_ADDRESS_LOCATION_PLACEHOLDER": "Taimaka wa masu saye su same ka ta hanyar ƙara adireshi ko bayanin inda kake siyarwa",
6160
"SELLER_SETTINGS_LABEL": "Saitunan Mai Sayarwa",

messages/ko.json

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
},
5656
"SELLER_ADVANCED_SETTINGS_LABEL": "고급 판매자 설정",
5757
"SELLER_RETAIL_OUTLET_NAME": "소매점 이름",
58-
"SELLER_RETAIL_OUTLET_PLACEHOLDER": "상점 이름을 입력하세요",
5958
"SELLER_ADDRESS_LOCATION_LABEL": "주소 또는 판매 장소",
6059
"SELLER_ADDRESS_LOCATION_PLACEHOLDER": "구매자가 당신을 찾을 수 있도록 주소 또는 판매 장소에 대한 설명을 추가하세요",
6160
"SELLER_SETTINGS_LABEL": "판매자 설정",

src/app/[locale]/seller/registration/page.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const SellerRegistrationForm = () => {
128128
});
129129
} else {
130130
setFormData({
131-
sellerName: translatedPreFilledText['retail-outlet-name'],
131+
sellerName: currentUser?.pi_username || '',
132132
sellerType: translatedSellerTypeOptions[2].value,
133133
sellerDescription: translatedPreFilledText['seller-description'],
134134
sellerAddress: translatedPreFilledText['seller-address'],
@@ -281,7 +281,6 @@ const SellerRegistrationForm = () => {
281281
};
282282

283283
const translatedPreFilledText = {
284-
'retail-outlet-name': t('SCREEN.SELLER_REGISTRATION.SELLER_RETAIL_OUTLET_PLACEHOLDER'),
285284
'seller-description': t('SCREEN.SELLER_REGISTRATION.SELLER_DETAILS_PLACEHOLDER'),
286285
'seller-address': t('SCREEN.SELLER_REGISTRATION.SELLER_ADDRESS_LOCATION_PLACEHOLDER'),
287286
};
@@ -290,7 +289,6 @@ const SellerRegistrationForm = () => {
290289
fieldName: keyof IFormData;
291290
preFilledTextKey: keyof typeof translatedPreFilledText;
292291
}[] = [
293-
{ fieldName: 'sellerName', preFilledTextKey: 'retail-outlet-name' },
294292
{ fieldName: 'sellerDescription', preFilledTextKey: 'seller-description' },
295293
{ fieldName: 'sellerAddress', preFilledTextKey: 'seller-address' },
296294
];

0 commit comments

Comments
 (0)