Skip to content

Commit

Permalink
fix: remove footer nav
Browse files Browse the repository at this point in the history
  • Loading branch information
TanveerAhmed authored and TanveerAhmed committed Dec 11, 2023
1 parent 659fc9c commit d736352
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 195 deletions.
63 changes: 36 additions & 27 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,36 +43,45 @@ class SiteFooter extends React.Component {
intl,
} = this.props;
const showLanguageSelector = supportedLanguages.length > 0 && onLanguageSelected;
//const { config } = this.context;
const config = getConfig();

const config= getConfig();
return (

<div className="wrapper wrapper-footer">
<footer id="footer" className="tutor-container">
<div className="footer-top">
<div className="powered-area">
<ul className="logo-list">
<li>Powered by:</li>
<li>
<a href="https://docs.tutor.overhang.io" rel="noopener" target="_blank">
<Image
src={`${config.LMS_BASE_URL}/static/indigo/images/tutor-logo.png`} alt="Runs on Tutor" width="57"
/>
</a>
</li>
<li>
<a href="https://open.edx.org" rel="noopener" target="_blank">
<Image src={`${config.LMS_BASE_URL}/static/indigo/images/openedx-logo.png`} alt="Powered by Open edX" width="79"
/>
</a>
</li>
</ul>
</div>
<div className="wrapper wrapper-footer">
<footer id="footer" className="tutor-container">
<div className="footer-top">
<div className="powered-area">
<ul className="logo-list">
<li>{intl.formatMessage(messages['footer.poweredby.text'])}</li>
<li>
<a href="https://docs.tutor.overhang.io" rel="noreferrer" target="_blank">
<Image
src={`${config.LMS_BASE_URL}/static/indigo/images/tutor-logo.png`}
alt={intl.formatMessage(messages['footer.tutorlogo.altText'])}
width="57"
/>
</a>
</li>
<li>
<a href="https://open.edx.org" rel="noreferrer" target="_blank">
<Image
src={logo || `${config.LMS_BASE_URL}/static/indigo/images/openedx-logo.png`}
alt={intl.formatMessage(messages['footer.logo.altText'])}
width="79"
/>
</a>
</li>
</ul>
</div>
</div>
<span className="copyright-site">{intl.formatMessage(messages['footer.copyright.text'])}</span>
{showLanguageSelector && (
<LanguageSelector
options={supportedLanguages}
onSubmit={onLanguageSelected}
/>
)}
</footer>
</div>
<span className="copyright-site">Copyrights ©2023. All Rights Reserved.</span>
</footer>
</div>
);
}
}
Expand Down
168 changes: 0 additions & 168 deletions src/components/__snapshots__/Footer.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -50,62 +50,6 @@ exports[`<Footer /> renders correctly renders with a language selector 1`] = `
</li>
</ul>
</div>
<nav
aria-label="About"
className="nav-colophon"
>
<ol>
<li>
<a
href="http://localhost:18000/about"
>
About Us
</a>
</li>
<li>
<a
href="http://localhost:18000/blog"
>
Blog
</a>
</li>
<li>
<a
href="http://localhost:18000/donate"
>
Donate
</a>
</li>
<li>
<a
href="http://localhost:18000/tos"
>
Terms of Sevice
</a>
</li>
<li>
<a
href="http://localhost:18000/privacy"
>
Privacy Policy
</a>
</li>
<li>
<a
href="http://localhost:18000/help"
>
Help
</a>
</li>
<li>
<a
href="http://localhost:18000/contact"
>
Contact Us
</a>
</li>
</ol>
</nav>
</div>
<span
className="copyright-site"
Expand Down Expand Up @@ -204,62 +148,6 @@ exports[`<Footer /> renders correctly renders without a language selector 1`] =
</li>
</ul>
</div>
<nav
aria-label="About"
className="nav-colophon"
>
<ol>
<li>
<a
href="http://localhost:18000/about"
>
About Us
</a>
</li>
<li>
<a
href="http://localhost:18000/blog"
>
Blog
</a>
</li>
<li>
<a
href="http://localhost:18000/donate"
>
Donate
</a>
</li>
<li>
<a
href="http://localhost:18000/tos"
>
Terms of Sevice
</a>
</li>
<li>
<a
href="http://localhost:18000/privacy"
>
Privacy Policy
</a>
</li>
<li>
<a
href="http://localhost:18000/help"
>
Help
</a>
</li>
<li>
<a
href="http://localhost:18000/contact"
>
Contact Us
</a>
</li>
</ol>
</nav>
</div>
<span
className="copyright-site"
Expand Down Expand Up @@ -320,62 +208,6 @@ exports[`<Footer /> renders correctly renders without a language selector in es
</li>
</ul>
</div>
<nav
aria-label="About"
className="nav-colophon"
>
<ol>
<li>
<a
href="http://localhost:18000/about"
>
About Us
</a>
</li>
<li>
<a
href="http://localhost:18000/blog"
>
Blog
</a>
</li>
<li>
<a
href="http://localhost:18000/donate"
>
Donate
</a>
</li>
<li>
<a
href="http://localhost:18000/tos"
>
Terms of Sevice
</a>
</li>
<li>
<a
href="http://localhost:18000/privacy"
>
Privacy Policy
</a>
</li>
<li>
<a
href="http://localhost:18000/help"
>
Help
</a>
</li>
<li>
<a
href="http://localhost:18000/contact"
>
Contact Us
</a>
</li>
</ol>
</nav>
</div>
<span
className="copyright-site"
Expand Down

0 comments on commit d736352

Please sign in to comment.