Skip to content

Commit

Permalink
minor changes with fixes in logic to conditionally render link
Browse files Browse the repository at this point in the history
  • Loading branch information
Devesh21700Kumar committed Jan 31, 2022
1 parent 7b23954 commit 64c7848
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/footer/AboutModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ import gplLogo from './img/gplv3-88x31.png';
import maeLogo from './img/logo_mae_ro_75pc.jpg';
import mineturLogo from './img/logomitc120.jpg';
import prompsitLogo from './img/prompsit150x52.png';
import { useLocation } from "react-router-dom";

const AboutModal = (props: ModalProps): React.ReactElement => {
const { t } = useLocalization();
const location = useLocation();
const { pathname } = location;
const splitLocation = pathname.split("/");

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

<div className="row lead">
<Col md="6">
Expand Down

0 comments on commit 64c7848

Please sign in to comment.