Skip to content

Commit 4d60da0

Browse files
minor changes with fixes in logic to conditionally render link
1 parent 506455b commit 4d60da0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/footer/AboutModal.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ import gplLogo from './img/gplv3-88x31.png';
1313
import maeLogo from './img/logo_mae_ro_75pc.jpg';
1414
import mineturLogo from './img/logomitc120.jpg';
1515
import prompsitLogo from './img/prompsit150x52.png';
16+
import { useLocation } from "react-router-dom";
1617

1718
const AboutModal = (props: ModalProps): React.ReactElement => {
1819
const { t } = useLocalization();
20+
const location = useLocation();
21+
const { pathname } = location;
22+
const splitLocation = pathname.split("/");
1923

2024
return (
2125
<Modal {...props} size="lg">
@@ -25,7 +29,7 @@ const AboutModal = (props: ModalProps): React.ReactElement => {
2529
<Modal.Body>
2630
<div dangerouslySetInnerHTML={{ __html: t('What_Is_Apertium') }} />
2731
<div dangerouslySetInnerHTML={{ __html: t('Maintainer') }} style={{ paddingBottom: '2em' }} />
28-
<div dangerouslySetInnerHTML={{ __html: t('More_Languages') }} style={{ paddingBottom: '2em' }}/>
32+
<div dangerouslySetInnerHTML={{ __html: t('More_Languages') }} style={{ paddingBottom: '2em', display: (splitLocation[0]==="beta.apertium.org")?"none":"" }}/>
2933

3034
<div className="row lead">
3135
<Col md="6">

0 commit comments

Comments
 (0)