Skip to content

Commit

Permalink
Remove unnecessary horizontal line on FAQ #1818 (#1819)
Browse files Browse the repository at this point in the history
* Fix notification subscription button on My Account (Mobile) #1783

* Test

* fix misplaced

* Strange line on faq page #1818

* formated Strange line on faq page #1818

* yarn format lint issue#1818
  • Loading branch information
iliyan90 authored May 29, 2024
1 parent fa22673 commit 128dd2f
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 49 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ Watch releases of this repository to be notified about future updates:
## Contributors ✨

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->

[![All Contributors](https://img.shields.io/badge/all_contributors-77-orange.svg?style=flat-square)](#contributors-)

<!-- ALL-CONTRIBUTORS-BADGE:END -->

Please check [contributors guide](https://github.com/podkrepi-bg/frontend/blob/master/CONTRIBUTING.md) for:
Expand Down
2 changes: 1 addition & 1 deletion public/locales/bg/beneficiary.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"company-select": "Изберете ЮЛНЦ или",
"create-new": "създайте нов",
"person-label": "Потребител",
"company-label": "ЮЛНЦ",
"company-label": "ЮЛНЦ"
}
},
"actions": "Действия",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/bg/validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"payment-reference": "Невалиден формат на кода за плащане",
"eik-invalid": "Невалидно ЕИК",
"help-us-improve": "Съгласявам се да се свържете с мен за подобрение на платформата."
}
}
49 changes: 24 additions & 25 deletions public/locales/en/bank-transactions.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
{
"all": "All bank transactions",
"bank-transactions": "Bank transactions",
"transaction-date": "Transaction date",
"amount": "Amount",
"currency": "Currency",
"donation-status": "Donation status",
"id": "Trnsaction ID",
"bank-name": "Bank name",
"all": "All bank transactions",
"bank-transactions": "Bank transactions",
"transaction-date": "Transaction date",
"amount": "Amount",
"currency": "Currency",
"donation-status": "Donation status",
"id": "Trnsaction ID",
"bank-name": "Bank name",
"type": "Type",
"description": "Description",
"cta": {
"download": "Download",
"status": "Donation status",
"type": "Type",
"description": "Description",
"cta": {
"download": "Download",
"status": "Donation status",
"type": "Type",
"from": "From",
"to": "To",
"apply-ref-heading": "Apply ref heading",
"apply-ref": "Apply ref",
"edit": "Edit",
"start-sync": "Start sync"
},
"matched-ref": "Matched ref",
"payment-ref": "Payment ref",
"rerun-dates": "Repeat bank sync"
}

"from": "From",
"to": "To",
"apply-ref-heading": "Apply ref heading",
"apply-ref": "Apply ref",
"edit": "Edit",
"start-sync": "Start sync"
},
"matched-ref": "Matched ref",
"payment-ref": "Payment ref",
"rerun-dates": "Repeat bank sync"
}
2 changes: 1 addition & 1 deletion public/locales/en/validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"payment-reference": "Invalid payment code format",
"eik-invalid": "Invalid EIK",
"help-us-improve": "I agree to be contacted to help improve the platform."
}
}
45 changes: 28 additions & 17 deletions src/components/client/auth/profile/MyNotificationsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const classes = {
smallText: `${PREFIX}-smallText`,
boxTitle: `${PREFIX}-boxTitle`,
statusBoxRow: `${PREFIX}-statusBoxRow`,
statusBoxBtnStatus: `${PREFIX}-statusBoxBtnStatus`,
notificationsBox: `${PREFIX}-notificationBox`,
statusBtn: `${PREFIX}-statusBtn`,
statusActive: `${PREFIX}-statusActive`,
Expand Down Expand Up @@ -61,9 +62,17 @@ const Root = styled('div')(({ theme }) => ({
[`& .${classes.statusBoxRow}`]: {
display: 'flex',
justifyContent: 'space-between',
flexWrap: 'wrap',
gap: 20,
alignItems: 'center',
padding: theme.spacing(0, 2),
},
[`& .${classes.statusBoxBtnStatus}`]: {
display: 'flex',
alignItems: 'center',
gap: 20,
flexWrap: 'wrap',
},
[`& .${classes.statusActive}`]: {
color: 'green',
},
Expand Down Expand Up @@ -112,23 +121,25 @@ export default function MyNotificationsTab() {
<Typography fontWeight="medium" variant="h6">
{t('profile:myNotifications.status-msg')}
</Typography>
<Typography
fontWeight="bold"
ml={1}
variant="h5"
className={user?.user.newsletter ? classes.statusActive : classes.statusInactive}>
{user?.user.newsletter
? t('profile:myNotifications.status.active')
: t('profile:myNotifications.status.inactive')}
</Typography>
<Button
className={classes.statusBtn}
style={{ opacity: user?.user.newsletter ? '80%' : '100%' }}
onClick={() => setShowConfirmModal(true)}>
{user?.user.newsletter
? t('profile:myNotifications.cta.deactivate')
: t('profile:myNotifications.cta.activate')}
</Button>
<Box className={classes.statusBoxBtnStatus}>
<Typography
fontWeight="bold"
ml={1}
variant="h5"
className={user?.user.newsletter ? classes.statusActive : classes.statusInactive}>
{user?.user.newsletter
? t('profile:myNotifications.status.active')
: t('profile:myNotifications.status.inactive')}
</Typography>
<Button
className={classes.statusBtn}
style={{ opacity: user?.user.newsletter ? '80%' : '100%' }}
onClick={() => setShowConfirmModal(true)}>
{user?.user.newsletter
? t('profile:myNotifications.cta.deactivate')
: t('profile:myNotifications.cta.activate')}
</Button>
</Box>
</Box>
</Card>
{user?.user.newsletter && (
Expand Down
7 changes: 5 additions & 2 deletions src/components/client/faq/VerticalTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@ const VerticalTabs = ({ faqCategories }: Props) => {
query: { section: newValue },
})
}

const rightLineStyle =
faqCategories.length > 0
? { borderRight: 1, borderColor: 'divider', mb: 4, width: '100%' }
: { borderColor: 'divider', mb: 4, width: '100%' }
return (
<Box sx={{ bgcolor: 'background.paper', display: 'flex', justifyContent: 'center', flex: 1 }}>
<TabList
orientation="vertical"
variant="scrollable"
onChange={handleChange}
sx={{ borderRight: 1, borderColor: 'divider', mb: 4, width: '100%' }}>
sx={rightLineStyle}>
{faqCategories.map((category) => {
return <Tab key={category} value={category} label={t(`categories.${category}`)} />
})}
Expand Down
2 changes: 0 additions & 2 deletions src/components/client/irregularity/steps/Greeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { useTranslation } from 'next-i18next'
import { Grid, Typography } from '@mui/material'

import Subtitle from '../helpers/Subtitle'
import Link from 'components/common/Link'
import { routes } from 'common/routes'

const greetingStyles = {
fontWeight: 'bold',
Expand Down

0 comments on commit 128dd2f

Please sign in to comment.