-
Notifications
You must be signed in to change notification settings - Fork 133
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 #4773 from HSLdevcom/DT-5591-statistics
Only send analytics events if cookie consent has been given
- Loading branch information
Showing
8 changed files
with
86 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { FormattedMessage } from 'react-intl'; | ||
|
||
const MobileFooter = (props, { config }) => { | ||
return ( | ||
<> | ||
{config.useCookiesPrompt && ( | ||
<div className="mobile-footer"> | ||
<div style={{ margin: '15px' }}> | ||
<div>{config.copyrightText || ''}</div> | ||
<div> | ||
<button | ||
type="button" | ||
onClick={() => | ||
window.CookieConsent.renew && window.CookieConsent.renew() | ||
} | ||
> | ||
<FormattedMessage | ||
id="cookie-settings" | ||
default="Cookie settings" | ||
/> | ||
</button> | ||
</div> | ||
</div> | ||
<div className="mobile-footer-bar-container"> | ||
<div className="mobile-footer-bar" /> | ||
</div> | ||
</div> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
MobileFooter.contextTypes = { | ||
config: PropTypes.object.isRequired, | ||
}; | ||
|
||
export default MobileFooter; |
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