-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #640 from GeotrekCE/develop
Develop > Main / 3.8.1
- Loading branch information
Showing
66 changed files
with
961 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
import parse from 'html-react-parser'; | ||
import { PortalContact } from './PortalContact'; | ||
import { PortalLinks } from './PortalLinks'; | ||
import { SocialNetworks } from './SocialNetworks'; | ||
import { useFooter } from './useFooter'; | ||
|
||
export const Footer: React.FC = () => { | ||
const { config } = useFooter(); | ||
const { config, intl } = useFooter(); | ||
const footerTop = config.footerTopHtml[intl.locale] ?? config.footerTopHtml.default; | ||
const footerBottom = config.footerBottomHtml[intl.locale] ?? config.footerBottomHtml.default; | ||
return ( | ||
<div className="bg-black flex flex-col" id="footer"> | ||
<div className="mx-4 desktop:mx-10percent" id="footer_content"> | ||
{config.socialNetworks && <SocialNetworks socialNetworkList={config.socialNetworks} />} | ||
<div | ||
id="footer_sections" | ||
className=" | ||
flex flex-col desktop:flex-row justify-between | ||
pt-2.5 pb-10 desktop:pt-10 desktop:pb-18" | ||
> | ||
{config.contact && <PortalContact {...config.contact} />} | ||
{config.links && <PortalLinks name="footer.linksSectionTitle" links={config.links} />} | ||
<> | ||
{footerTop !== undefined && <div id="footer_topHtml">{parse(footerTop)}</div>} | ||
<div className="bg-black flex flex-col" id="footer"> | ||
<div className="mx-4 desktop:mx-10percent" id="footer_content"> | ||
{config.socialNetworks && <SocialNetworks socialNetworkList={config.socialNetworks} />} | ||
<div | ||
id="footer_sections" | ||
className=" | ||
flex flex-col desktop:flex-row justify-between | ||
pt-2.5 pb-10 desktop:pt-10 desktop:pb-18" | ||
> | ||
{config.contact && <PortalContact {...config.contact} />} | ||
{config.links && <PortalLinks name="footer.linksSectionTitle" links={config.links} />} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{footerBottom !== undefined && <div id="footer_bottomHtml">{parse(footerBottom)}</div>} | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.