Skip to content

Commit

Permalink
Merge pull request #528 from Dmitry1399/fix-footer-eng-version
Browse files Browse the repository at this point in the history
[#517] fixed the disappearance of the footer link in the en version
  • Loading branch information
dzencot authored Jul 18, 2024
2 parents 8b2b11a + 329d31f commit 6c241cc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
27 changes: 11 additions & 16 deletions frontend/src/components/Footer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import { ReactComponent as Vk } from '../../assets/images/icons/vk.svg';
import classes from './index.module.css';

function Footer() {
const { t: tF, i18n } = useTranslation('translation', {
const { t: tF } = useTranslation('translation', {
keyPrefix: 'footer',
});
const { language } = i18n;

return (
<footer className="bg-dark border-top border-secondary pt-4 pb-5">
Expand Down Expand Up @@ -129,20 +128,16 @@ function Footer() {
{tF('agreement')}
</Nav.Link>
</li>
{language === 'ru' && (
<li>
<Nav.Link
as={Link}
className={`${classes.footerNavLink} py-1 px-0`}
eventKey="licenseAgreement"
to="/licenseAgreement"
>
<span style={{ paddingRight: '1.25rem' }}>
{tF('licenseAgreement')}
</span>
</Nav.Link>
</li>
)}
<li>
<Nav.Link
as={Link}
className={`${classes.footerNavLink} py-1 px-0`}
eventKey="licenseAgreement"
to="/licenseAgreement"
>
<span>{tF('licenseAgreement')}</span>
</Nav.Link>
</li>
<li>
<Nav.Link
as="a"
Expand Down
1 change: 0 additions & 1 deletion frontend/src/pages/landing/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ function Footer() {
const { t: tLH } = useTranslation('translation', {
keyPrefix: 'landing.header',
});
const { t: tFAQ } = useTranslation('translation', { keyPrefix: 'faq' });
const { t: tF } = useTranslation('translation', { keyPrefix: 'footer' });

const theme = document.documentElement.getAttribute('data-bs-theme');
Expand Down

0 comments on commit 6c241cc

Please sign in to comment.