Skip to content

Commit be7af06

Browse files
authored
Merge pull request #173 from map-of-pi/ft/user-settings
Approved (1).
2 parents 0b07abe + be1cacb commit be7af06

File tree

14 files changed

+257
-101
lines changed

14 files changed

+257
-101
lines changed

messages/en-GB.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"SIDE_NAVIGATION": {
1616
"USER_PREFERENCES_HEADER": "User Preferences",
17+
"PERSONALIZATION_SUBHEADER": "Personalisationn",
1718
"EMAIL_ADDRESS_FIELD": "Your email address",
1819
"PHONE_NUMBER_FIELD": "Your phone number",
1920
"LANGUAGES": "Languages",
@@ -23,6 +24,11 @@
2324
"PRIVACY_POLICY": "Privacy Policy",
2425
"TERMS_OF_SERVICE": "Terms of Service"
2526
},
27+
"FIND_ME_PREFERENCE_LABEL": "FindMe Preference",
28+
"FIND_ME_OPTIONS": {
29+
"PREFERRED_DEVICE_GPS": "Use my device GPS",
30+
"PREFERRED_SEARCH_CENTER": "Use Search Centre"
31+
},
2632
"CONTACT_MAP_OF_PI": "Contact Map of Pi",
2733
"VALIDATION": {
2834
"SUCCESSFUL_PREFERENCES_SUBMISSION": "User Preferences update successful",

messages/en.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"SIDE_NAVIGATION": {
1616
"USER_PREFERENCES_HEADER": "User Preferences",
17+
"PERSONALIZATION_SUBHEADER": "Personalization",
1718
"EMAIL_ADDRESS_FIELD": "Your email address",
1819
"PHONE_NUMBER_FIELD": "Your phone number",
1920
"LANGUAGES": "Languages",
@@ -23,6 +24,11 @@
2324
"PRIVACY_POLICY": "Privacy Policy",
2425
"TERMS_OF_SERVICE": "Terms of Service"
2526
},
27+
"FIND_ME_PREFERENCE_LABEL": "FindMe Preference",
28+
"FIND_ME_OPTIONS": {
29+
"PREFERRED_DEVICE_GPS": "Use my device GPS",
30+
"PREFERRED_SEARCH_CENTER": "Use Search Center"
31+
},
2632
"CONTACT_MAP_OF_PI": "Contact Map of Pi",
2733
"VALIDATION": {
2834
"SUCCESSFUL_PREFERENCES_SUBMISSION": "User Preferences update successful",

messages/es.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"SIDE_NAVIGATION": {
1616
"USER_PREFERENCES_HEADER": "Preferencias del Usuario",
17+
"PERSONALIZATION_SUBHEADER": "Personalización",
1718
"EMAIL_ADDRESS_FIELD": "Tu dirección de correo electrónico",
1819
"PHONE_NUMBER_FIELD": "Tu número de teléfono",
1920
"LANGUAGES": "Idiomas",
@@ -23,6 +24,11 @@
2324
"PRIVACY_POLICY": "Política de Privacidad",
2425
"TERMS_OF_SERVICE": "Términos de Servicio"
2526
},
27+
"FIND_ME_PREFERENCE_LABEL": "Preferencia de FindMe",
28+
"FIND_ME_OPTIONS": {
29+
"PREFERRED_DEVICE_GPS": "Usar el GPS de mi dispositivo",
30+
"PREFERRED_SEARCH_CENTER": "Usar el Centro de Búsqueda"
31+
},
2632
"CONTACT_MAP_OF_PI": "Contactar a Map of Pi",
2733
"VALIDATION": {
2834
"SUCCESSFUL_PREFERENCES_SUBMISSION": "Actualización de preferencias del usuario exitosa",

messages/ewe-BJ.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"SIDE_NAVIGATION": {
1616
"USER_PREFERENCES_HEADER": "Nutifafa le Mawuwo",
17+
"PERSONALIZATION_SUBHEADER": "Trɔtrɔnye",
1718
"EMAIL_ADDRESS_FIELD": "Wò email adrɛs",
1819
"PHONE_NUMBER_FIELD": "Wò telefɔn numɔ",
1920
"LANGUAGES": "Ɖe ŋutɔ",
@@ -23,6 +24,11 @@
2324
"PRIVACY_POLICY": "Ameŋunyatakakawo Ŋuti Ðoɖo",
2425
"TERMS_OF_SERVICE": "Ɖoɖo ƒe tɔtrɔ"
2526
},
27+
"FIND_ME_PREFERENCE_LABEL": "FindMe la wɔ nu si",
28+
"FIND_ME_OPTIONS": {
29+
"PREFERRED_DEVICE_GPS": "Ne míetsɔ nyɔnu tɔn wɔ mí geɖeŋu me",
30+
"PREFERRED_SEARCH_CENTER": "Ne míetsɔ Gbesɔsɔmesi"
31+
},
2632
"CONTACT_MAP_OF_PI": "Wò Map of Pi me",
2733
"VALIDATION": {
2834
"SUCCESSFUL_PREFERENCES_SUBMISSION": "Nuŋlɔdodoawo ƒe se se yia ɖe asi me",

messages/hau-NG.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"SIDE_NAVIGATION": {
1616
"USER_PREFERENCES_HEADER": "Zaɓin mai amfani",
17+
"PERSONALIZATION_SUBHEADER": "Keɓancewa",
1718
"EMAIL_ADDRESS_FIELD": "Adireshin i-mel dinka",
1819
"PHONE_NUMBER_FIELD": "Lambar wayarka",
1920
"LANGUAGES": "Harsuna",
@@ -23,6 +24,11 @@
2324
"PRIVACY_POLICY": "Takardar Kebantawa",
2425
"TERMS_OF_SERVICE": "Sharuɗɗan Sabis"
2526
},
27+
"FIND_ME_PREFERENCE_LABEL": "Zaɓin FindMe",
28+
"FIND_ME_OPTIONS": {
29+
"PREFERRED_DEVICE_GPS": "Yi amfani da GPS na na'urar",
30+
"PREFERRED_SEARCH_CENTER": "Yi amfani da Cibiyar Bincike"
31+
},
2632
"CONTACT_MAP_OF_PI": "Tuntubi Map of Pi",
2733
"VALIDATION": {
2834
"SUCCESSFUL_PREFERENCES_SUBMISSION": "Sabunta zaɓuɓɓukan mai amfani ya yi nasara",

messages/ko.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"SIDE_NAVIGATION": {
1616
"USER_PREFERENCES_HEADER": "사용자 설정",
17+
"PERSONALIZATION_SUBHEADER": "개인화",
1718
"EMAIL_ADDRESS_FIELD": "이메일 주소",
1819
"PHONE_NUMBER_FIELD": "전화번호",
1920
"LANGUAGES": "언어",
@@ -23,6 +24,11 @@
2324
"PRIVACY_POLICY": "개인정보 보호정책",
2425
"TERMS_OF_SERVICE": "서비스 약관"
2526
},
27+
"FIND_ME_PREFERENCE_LABEL": "FindMe 선호",
28+
"FIND_ME_OPTIONS": {
29+
"PREFERRED_DEVICE_GPS": "내 기기의 GPS 사용",
30+
"PREFERRED_SEARCH_CENTER": "검색 센터 사용"
31+
},
2632
"CONTACT_MAP_OF_PI": "Map of Pi에 문의",
2733
"VALIDATION": {
2834
"SUCCESSFUL_PREFERENCES_SUBMISSION": "사용자 환경 설정 업데이트 성공",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ const SellerRegistrationForm = () => {
337337
<span className="font-bold">
338338
{t('SHARED.USER_INFORMATION.NAME_LABEL') + ': '}
339339
</span>
340-
<span>{dbSeller ? dbSeller.name : ''}</span>
340+
<span>{currentUser ? currentUser.user_name : ''}</span>
341341
</div>
342342
<div className="text-sm mb-3">
343343
<span className="font-bold">

src/app/[locale]/seller/reviews/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function SellerReviews({
3434
searchParams: any;
3535
}) {
3636
const t = useTranslations();
37-
const sellerName = searchParams.seller_name;
37+
const sellerName = searchParams.seller_name;
3838
const isbuyer = searchParams.buyer;
3939
const sellerId = params.id;
4040

src/app/[locale]/seller/sale-items/[id]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export default function Page({ params }: { params: { id: string } }) {
156156
<EmojiPicker sellerId={sellerId} setIsSaveEnabled={setIsSaveEnabled} currentUser={currentUser} />
157157
</div>
158158
</ToggleCollapse>
159+
159160

160161
<ToggleCollapse
161162
header={t('SCREEN.BUY_FROM_SELLER.SELLER_CONTACT_DETAILS_LABEL')}>

src/components/shared/Forms/Buttons/Buttons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const OutlineBtn = (props: any) => {
3030
const { styles, icon, label, disabled, onClick } = props;
3131
return (
3232
<button
33-
className={`px-4 py-1 gap-1 cursor-pointer items-center justify-center outline outline-primary outline-[1.5px] hover:bg-primary hover:text-white text-primary rounded-md flex`}
33+
className={`px-4 py-1 gap-1 cursor-pointer items-center justify-center outline outline-primary outline-[1.5px] hover:bg-primary hover:text-white text-primary rounded-md flex mx-auto`}
3434
style={styles}
3535
disabled={disabled}
3636
onClick={onClick}>

src/components/shared/Review/TrustMeter.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import React from 'react';
22

33
type TrustMeterProps = {
44
ratings: number;
5+
hideLabel?: boolean;
56
};
67

7-
const TrustMeter: React.FC<TrustMeterProps> = ({ ratings }) => {
8+
const TrustMeter: React.FC<TrustMeterProps> = ({ ratings, hideLabel}) => {
89
const percentageRating = ratings.toString();
910
const average = 50; // this can be adjusted
1011
const condition = ratings < average
@@ -13,7 +14,7 @@ const TrustMeter: React.FC<TrustMeterProps> = ({ ratings }) => {
1314

1415
return (
1516
<div className='w-full flex'>
16-
<h3 className='font-bold text-sm text-nowrap pe-2'>Trust-o-meter</h3>
17+
<h3 className={`font-bold text-sm text-nowrap pe-2 ${hideLabel? 'hidden': 'block'}`}>Trust-o-meter</h3>
1718
<div className='flex-1'>
1819

1920
<div className="flex w-full">

0 commit comments

Comments
 (0)