Skip to content

Commit

Permalink
fix: Added notify me when label (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui authored Sep 28, 2023
1 parent 379818a commit f28120c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/account/components/AccountProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
} from 'terraso-client-shared/account/accountSlice';
import { useFetchData } from 'terraso-client-shared/store/utils';
import * as yup from 'yup';
import { Checkbox, FormControlLabel, Typography } from '@mui/material';
import { Checkbox, FormControlLabel, Grid, Typography } from '@mui/material';

import { withProps } from 'react-hoc';

Expand Down Expand Up @@ -86,13 +86,19 @@ const FIELDS = [
{
name: 'notifications',
renderStaticElement: ({ t }) => (
<Typography
variant="caption"
size="small"
sx={{ pl: 2, textTransform: 'uppercase', opacity: 0.6 }}
>
{t('account.form_notifications_section_label')}
</Typography>
<Grid item>
<Typography
variant="caption"
component="p"
size="small"
sx={{ textTransform: 'uppercase', opacity: 0.6 }}
>
{t('account.form_notifications_section_label')}
</Typography>
<Typography sx={{ mt: 2, mb: 1 }}>
{t('account.form_notifications_section_when_label')}
</Typography>
</Grid>
),
},
{
Expand Down
1 change: 1 addition & 0 deletions src/localization/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
"profile_form_label": "Manage profile",
"form_language_label": "Language",
"form_notifications_section_label": "Email notifications",
"form_notifications_section_when_label": "Notify me when:",
"form_notifications_group_label": "A group I manage has pending requests or my request to join a closed group is approved",
"form_notifications_story_map_label": "I am invited to edit a story map",
"unsubscribe_title": "Unsubscribe",
Expand Down
1 change: 1 addition & 0 deletions src/localization/locales/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
"profile_form_label": "Administrar perfil",
"form_language_label": "Idioma",
"form_notifications_section_label": "Notificaciónes de Correo Electrónico",
"form_notifications_section_when_label": "Notifícame cuando:",
"form_notifications_group_label": "Un grupo que administro tiene solicitudes pendientes o mi solicitud para unirme a un grupo cerrado está aprobada",
"form_notifications_story_map_label": "Me invitan a editar un story map.",
"unsubscribe_title": "Darse de baja",
Expand Down

0 comments on commit f28120c

Please sign in to comment.