Skip to content

Commit 345a2e3

Browse files
committed
Merge remote-tracking branch 'origin/dev' into feature/map-centers-ui-adjustments
2 parents 48613ab + 7be1f4c commit 345a2e3

File tree

14 files changed

+384
-368
lines changed

14 files changed

+384
-368
lines changed

context/AppContextProvider.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,20 @@ interface IAppContextProps {
2323
currentUser: IUser | null;
2424
setCurrentUser: React.Dispatch<SetStateAction<IUser | null>>;
2525
registerUser: () => void;
26-
autoLoginUser:()=> void,
27-
isSigningInUser: boolean
26+
autoLoginUser: ()=> void;
27+
isSigningInUser: boolean;
28+
reload: boolean;
29+
setReload: React.Dispatch<SetStateAction<boolean>>;
2830
}
2931

3032
const initialState: IAppContextProps = {
3133
currentUser: null,
3234
setCurrentUser: () => {},
3335
registerUser: () => { },
34-
autoLoginUser:()=> {},
35-
isSigningInUser:false
36+
autoLoginUser: ()=> {},
37+
isSigningInUser: false,
38+
reload: false,
39+
setReload: () => {},
3640
};
3741

3842
export const AppContext = createContext<IAppContextProps>(initialState);
@@ -45,6 +49,7 @@ const AppContextProvider = ({ children }: AppContextProviderProps) => {
4549
const t = useTranslations();
4650
const [currentUser, setCurrentUser] = useState<IUser | null>(null);
4751
const [isSigningInUser, setIsSigningInUser] = useState(false);
52+
const [reload, setReload] = useState(false);
4853

4954
const registerUser = async () => {
5055
logger.info('Initializing Pi SDK for user registration.');
@@ -111,7 +116,7 @@ const AppContextProvider = ({ children }: AppContextProviderProps) => {
111116
}, []);
112117

113118
return (
114-
<AppContext.Provider value={{ currentUser, setCurrentUser, registerUser, autoLoginUser, isSigningInUser }}>
119+
<AppContext.Provider value={{ currentUser, setCurrentUser, registerUser, autoLoginUser, isSigningInUser, reload, setReload }}>
115120
{children}
116121
</AppContext.Provider>
117122
);

messages/en-GB.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
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",
5859
"SELLER_ADDRESS_LOCATION_LABEL": "Address or where selling",
5960
"SELLER_ADDRESS_LOCATION_PLACEHOLDER": "Help your buyers find you by adding address or a description of where you are selling",
6061
"SELLER_SETTINGS_LABEL": "Seller Settings",
@@ -104,7 +105,7 @@
104105
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Feedback photo upload",
105106
"VALIDATION": {
106107
"LOADING_REVIEW_FAILURE": "Error loading review",
107-
"SELF_REVIEW_PROHIBITED": "Self-review is prohibited"
108+
"SELF_REVIEW_NOT_POSSIBLE": "Self-review is not possible"
108109
}
109110
}
110111
},

messages/en.json

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@
4848
"SELLER_TYPE": {
4949
"SELLER_TYPE_LABEL": "Seller type",
5050
"SELLER_TYPE_OPTIONS": {
51-
"ACTIVE_SELLER": "Active seller",
52-
"INACTIVE_SELLER": "Inactive seller",
51+
"ACTIVE_SELLER": "Active seller",
52+
"INACTIVE_SELLER": "Inactive seller",
5353
"TEST_SELLER": "Test seller"
5454
}
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",
5859
"SELLER_ADDRESS_LOCATION_LABEL": "Address or where selling",
5960
"SELLER_ADDRESS_LOCATION_PLACEHOLDER": "Help your buyers find you by adding address or a description of where you are selling",
6061
"SELLER_SETTINGS_LABEL": "Seller Settings",
@@ -78,9 +79,9 @@
7879
"REVIEWS_SCORE_MESSAGE": "Reviews Score: {seller_review_rating} out of 5.0",
7980
"SELLER_CONTACT_DETAILS_LABEL": "Seller Contact Details",
8081
"SELLER_USERNAME_LABEL": "Username",
81-
"SELLER_PIONEER_ID_LABEL": "Pioneer ID",
82+
"SELLER_PIONEER_ID_LABEL": "Pioneer ID",
8283
"SELLER_PHONE_NUMBER_LABEL": "Phone number",
83-
"SELLER_EMAIL_ADDRESS_LABEL": "Email address"
84+
"SELLER_EMAIL_ADDRESS_LABEL": "Email address"
8485
},
8586
"REVIEWS": {
8687
"REVIEWS_HEADER": "Reviews",
@@ -105,7 +106,7 @@
105106
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Feedback photo upload",
106107
"VALIDATION": {
107108
"LOADING_REVIEW_FAILURE": "Error loading review",
108-
"SELF_REVIEW_PROHIBITED": "Self-review is prohibited"
109+
"SELF_REVIEW_NOT_POSSIBLE": "Self-review is not possible"
109110
}
110111
}
111112
},
@@ -124,38 +125,31 @@
124125
"SECTIONS": {
125126
"HEADER_1": "Introduction",
126127
"CONTENT_1": "Welcome to the Map of Pi app, developed by the Map of Pi team in collaboration with the Pi Community. This Privacy Policy outlines how we collect, use, disclose, and protect your personal information when you use our mobile application.",
127-
128128
"HEADER_2": "Information We Collect",
129129
"SUBHEADER_2_1": "User Information",
130130
"CONTENT_2_1_1": "When you register as a user, we may collect your name, email address, username, and other relevant details.",
131131
"CONTENT_2_1_2": "We may collect information about your device, including device type, operating system, and unique device identifiers.",
132132
"SUBHEADER_2_2": "Seller Information",
133133
"CONTENT_2_2_1": "Sellers registering on the platform may be required to provide Seller information, including Seller name, location, and contact details.",
134134
"CONTENT_2_2_2": "A Seller may be a business or a private individual.",
135-
136135
"HEADER_3": "How We Use Your Information",
137136
"SUBHEADER_3_1": "Providing Services",
138137
"CONTENT_3_1_1": "We use your information to provide and enhance the Map of Pi app services, including user and Seller functionalities.",
139138
"SUBHEADER_3_2": "Communications",
140139
"CONTENT_3_2_1": "We may use your contact information to send you updates, notifications, and promotional messages related to the Map of Pi app.",
141140
"SUBHEADER_3_3": "Analytics",
142141
"CONTENT_3_3_1": "We collect and analyze data to improve the performance, features, and functionality of the app.",
143-
144142
"HEADER_4": "Sharing Your Information",
145143
"SUBHEADER_4_1": "With Sellers",
146144
"CONTENT_4_1_1": "User information may be shared with Sellers for order fulfillment and communication purposes.",
147145
"SUBHEADER_4_2": "With Third Parties",
148146
"CONTENT_4_2_1": "We may share information with third-party service providers for app functionality, analytics, and payment processing.",
149-
150147
"HEADER_5": "Security Measures",
151148
"CONTENT_5_1": "We employ industry-standard security measures to protect your information. However, no method of transmission over the internet or electronic storage is completely secure.",
152-
153149
"HEADER_6": "Your Choices",
154150
"CONTENT_6_1": "You can update your account information through the app settings. You may delete your Map of Pi account by deleting your Pi Network account and then choosing the option to delete your Map of Pi data when you next access Map of Pi. You may opt-out of promotional communications.",
155-
156151
"HEADER_7": "Changes to This Privacy Policy",
157152
"CONTENT_7_1": "We may update this Privacy Policy as necessary. The latest version will be posted on our website or within the app.",
158-
159153
"HEADER_8": "Contact Us",
160154
"CONTENT_8_1": "If you have any questions or concerns about this Privacy Policy, please contact us by sending an email to"
161155
}
@@ -167,24 +161,18 @@
167161
"SECTIONS": {
168162
"HEADER_1": "Acceptance of Terms",
169163
"CONTENT_1_1": "Welcome to the Map of Pi app, developed by the Map of Pi team in collaboration with the Pi Community. By using this app, you agree to abide by these Terms of Service, as well as our Privacy Policy.",
170-
171164
"HEADER_2": "Use of the App",
172165
"CONTENT_2_1": "You agree to use the Map of Pi app in compliance with all applicable laws and regulations.",
173-
"CONTENT_2_2": "You shall not use the app for any unlawful or prohibited purpose, or in any way that could damage, disable, overburden, or impair the app.",
174-
"CONTENT_2_3": "To use Map of Pi you must be registered as a pioneer user of the Pi Network.",
175-
166+
"CONTENT_2_2": "You shall not use the app for any unlawful or prohibited purpose, or in any way that could damage, disable, overburden, or impair the app.",
167+
"CONTENT_2_3": "To use Map of Pi you must be registered as a pioneer user of the Pi Network.",
176168
"HEADER_3": "Intellectual Property",
177169
"CONTENT_3_1": "The Map of Pi app and all content, features, and functionality are owned by Map of Pi and are protected by copyright, trademark, and other intellectual property laws.",
178-
179170
"HEADER_4": "Limitation of Liability",
180171
"CONTENT_4_1": "Map of Pi shall not be liable for any direct, indirect, incidental, special, or consequential damages arising out of or in any way connected with the use of the Map of Pi app.",
181-
182172
"HEADER_5": "Indemnification",
183173
"CONTENT_5_1": "You agree to indemnify and hold harmless Map of Pi and its affiliates, officers, directors, employees, and agents from any and all claims, liabilities, damages, losses, or expenses (including attorneys' fees) arising out of or in any way related to your use of the Map of Pi app.",
184-
185174
"HEADER_6": "Governing Law",
186175
"CONTENT_6_1": "These Terms of Service shall be governed by and construed in accordance with the law of England and Wales without regard to their conflict of law provisions, including any dispute or claim arising out of or in connection with their subject matter or formation (including non-contractual disputes or claims).",
187-
188176
"HEADER_7": "Changes to These Terms",
189177
"CONTENT_7_1": "We reserve the right to update or modify these Terms of Service at any time without prior notice. The latest version will be posted on our website or within the app."
190178
}
@@ -206,7 +194,7 @@
206194
"PI_USERNAME_LABEL": "Pi username",
207195
"NAME_LABEL": "Name",
208196
"PHONE_NUMBER_LABEL": "Phone number",
209-
"EMAIL_LABEL": "Email"
197+
"EMAIL_LABEL": "Email"
210198
},
211199
"PHOTO": {
212200
"UPLOAD_PHOTO_LABEL": "Upload photo",
@@ -246,7 +234,7 @@
246234
"LOADING_SCREEN_MESSAGE": "Loading data...",
247235
"VALIDATION": {
248236
"SUBMISSION_FAILED_USER_NOT_AUTHENTICATED": "Submission failed because user is not authenticated",
249-
"UNEXPECTED_ERROR_MESSAGE": "Unexpected error occurred"
237+
"UNEXPECTED_ERROR_MESSAGE": "Unexpected error occurred"
250238
}
251239
}
252240
}

messages/es.json

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
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",
5859
"SELLER_ADDRESS_LOCATION_LABEL": "Dirección o lugar de venta",
5960
"SELLER_ADDRESS_LOCATION_PLACEHOLDER": "Ayuda a tus compradores a encontrarte agregando una dirección o una descripción de dónde estás vendiendo",
6061
"SELLER_SETTINGS_LABEL": "Configuración del Vendedor",
@@ -77,9 +78,9 @@
7778
"REVIEWS_SCORE_MESSAGE": "Puntuación de Reseñas: {seller_review_rating} de 5.0",
7879
"SELLER_CONTACT_DETAILS_LABEL": "Detalles de Contacto del Vendedor",
7980
"SELLER_USERNAME_LABEL": "Nombre de usuario",
80-
"SELLER_PIONEER_ID_LABEL": "ID de Pionero",
81+
"SELLER_PIONEER_ID_LABEL": "ID de Pionero",
8182
"SELLER_PHONE_NUMBER_LABEL": "Número de teléfono",
82-
"SELLER_EMAIL_ADDRESS_LABEL": "Dirección de correo electrónico"
83+
"SELLER_EMAIL_ADDRESS_LABEL": "Dirección de correo electrónico"
8384
},
8485
"REVIEWS": {
8586
"REVIEWS_HEADER": "Reseñas",
@@ -104,7 +105,7 @@
104105
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Subir foto de retroalimentación",
105106
"VALIDATION": {
106107
"LOADING_REVIEW_FAILURE": "Error al cargar la reseña",
107-
"SELF_REVIEW_PROHIBITED": "La autoevaluación está prohibida"
108+
"SELF_REVIEW_NOT_POSSIBLE": "No es posible autoevaluarse"
108109
}
109110
}
110111
},
@@ -123,38 +124,31 @@
123124
"SECTIONS": {
124125
"HEADER_1": "Introducción",
125126
"CONTENT_1": "Bienvenido a la app Map of Pi, desarrollada por el equipo de Map of Pi en colaboración con la Comunidad Pi. Esta Política de Privacidad describe cómo recopilamos, usamos, divulgamos y protegemos tu información personal cuando usas nuestra aplicación móvil.",
126-
127127
"HEADER_2": "Información que Recopilamos",
128128
"SUBHEADER_2_1": "Información del Usuario",
129129
"CONTENT_2_1_1": "Cuando te registras como usuario, podemos recopilar tu nombre, dirección de correo electrónico, nombre de usuario y otros detalles relevantes.",
130130
"CONTENT_2_1_2": "Podemos recopilar información sobre tu dispositivo, incluyendo tipo de dispositivo, sistema operativo e identificadores únicos del dispositivo.",
131131
"SUBHEADER_2_2": "Información del Vendedor",
132132
"CONTENT_2_2_1": "Los vendedores que se registren en la plataforma pueden necesitar proporcionar información del Vendedor, incluyendo nombre del Vendedor, ubicación y detalles de contacto.",
133133
"CONTENT_2_2_2": "Un Vendedor puede ser un negocio o un individuo privado.",
134-
135134
"HEADER_3": "Cómo Usamos Tu Información",
136135
"SUBHEADER_3_1": "Provisión de Servicios",
137136
"CONTENT_3_1_1": "Usamos tu información para proporcionar y mejorar los servicios de la app Map of Pi, incluyendo funcionalidades para usuarios y vendedores.",
138137
"SUBHEADER_3_2": "Comunicaciones",
139138
"CONTENT_3_2_1": "Podemos usar tu información de contacto para enviarte actualizaciones, notificaciones y mensajes promocionales relacionados con la app Map of Pi.",
140139
"SUBHEADER_3_3": "Análisis",
141140
"CONTENT_3_3_1": "Recopilamos y analizamos datos para mejorar el rendimiento, las características y la funcionalidad de la app.",
142-
143141
"HEADER_4": "Compartir Tu Información",
144142
"SUBHEADER_4_1": "Con Vendedores",
145143
"CONTENT_4_1_1": "La información del usuario puede ser compartida con los vendedores para el cumplimiento de pedidos y propósitos de comunicación.",
146144
"SUBHEADER_4_2": "Con Terceros",
147145
"CONTENT_4_2_1": "Podemos compartir información con proveedores de servicios de terceros para la funcionalidad de la app, análisis y procesamiento de pagos.",
148-
149146
"HEADER_5": "Medidas de Seguridad",
150147
"CONTENT_5_1": "Empleamos medidas de seguridad estándar de la industria para proteger tu información. Sin embargo, ningún método de transmisión por internet o almacenamiento electrónico es completamente seguro.",
151-
152148
"HEADER_6": "Tus Opciones",
153149
"CONTENT_6_1": "Puedes actualizar la información de tu cuenta a través de la configuración de la app. Puedes eliminar tu cuenta de Map of Pi eliminando tu cuenta de Pi Network y luego eligiendo la opción de eliminar tus datos de Map of Pi cuando accedas a Map of Pi la próxima vez. Puedes optar por no recibir comunicaciones promocionales.",
154-
155150
"HEADER_7": "Cambios en Esta Política de Privacidad",
156151
"CONTENT_7_1": "Podemos actualizar esta Política de Privacidad según sea necesario. La versión más reciente estará publicada en nuestro sitio web o dentro de la app.",
157-
158152
"HEADER_8": "Contáctanos",
159153
"CONTENT_8_1": "Si tienes alguna pregunta o inquietud sobre esta Política de Privacidad, por favor contáctanos enviando un correo electrónico a"
160154
}
@@ -166,24 +160,18 @@
166160
"SECTIONS": {
167161
"HEADER_1": "Aceptación de los Términos",
168162
"CONTENT_1_1": "Bienvenido a la app Map of Pi, desarrollada por el equipo de Map of Pi en colaboración con la Comunidad Pi. Al usar esta app, aceptas cumplir con estos Términos de Servicio, así como con nuestra Política de Privacidad.",
169-
170163
"HEADER_2": "Uso de la App",
171164
"CONTENT_2_1": "Aceptas usar la app Map of Pi en cumplimiento con todas las leyes y regulaciones aplicables.",
172-
"CONTENT_2_2": "No deberás usar la app para ningún propósito ilegal o prohibido, ni de ninguna manera que pueda dañar, deshabilitar, sobrecargar o deteriorar la app.",
173-
"CONTENT_2_3": "Para usar Map of Pi debes estar registrado como usuario pionero de la Pi Network.",
174-
165+
"CONTENT_2_2": "No deberás usar la app para ningún propósito ilegal o prohibido, ni de ninguna manera que pueda dañar, deshabilitar, sobrecargar o deteriorar la app.",
166+
"CONTENT_2_3": "Para usar Map of Pi debes estar registrado como usuario pionero de la Pi Network.",
175167
"HEADER_3": "Propiedad Intelectual",
176168
"CONTENT_3_1": "La app Map of Pi y todo el contenido, características y funcionalidades son propiedad de Map of Pi y están protegidos por derechos de autor, marcas comerciales y otras leyes de propiedad intelectual.",
177-
178169
"HEADER_4": "Limitación de Responsabilidad",
179170
"CONTENT_4_1": "Map of Pi no será responsable por ningún daño directo, indirecto, incidental, especial o consecuente que surja de o en cualquier manera esté relacionado con el uso de la app Map of Pi.",
180-
181171
"HEADER_5": "Indemnización",
182172
"CONTENT_5_1": "Aceptas indemnizar y mantener indemne a Map of Pi y sus afiliados, oficiales, directores, empleados y agentes de cualquier reclamo, responsabilidad, daño, pérdida o gasto (incluidos los honorarios de abogados) que surja de o esté relacionado de alguna manera con tu uso de la app Map of Pi.",
183-
184173
"HEADER_6": "Ley Aplicable",
185174
"CONTENT_6_1": "Estos Términos de Servicio se regirán e interpretarán de acuerdo con la ley de Inglaterra y Gales sin tener en cuenta sus disposiciones sobre conflictos de leyes, incluyendo cualquier disputa o reclamo que surja de o esté relacionado con su objeto o formación (incluyendo disputas o reclamos no contractuales).",
186-
187175
"HEADER_7": "Cambios en Estos Términos",
188176
"CONTENT_7_1": "Nos reservamos el derecho de actualizar o modificar estos Términos de Servicio en cualquier momento sin previo aviso. La versión más reciente estará publicada en nuestro sitio web o dentro de la app."
189177
}

0 commit comments

Comments
 (0)