diff --git a/v3/src/components/CookieConsentConfig.ts b/v3/src/components/CookieConsentConfig.ts index 926cc80..e81fe66 100644 --- a/v3/src/components/CookieConsentConfig.ts +++ b/v3/src/components/CookieConsentConfig.ts @@ -55,7 +55,7 @@ export const config: CookieConsentConfig = { acceptNecessaryBtn: 'Reject all', showPreferencesBtn: 'Manage preferences', footer: - 'Privacy Policy\nTerms and conditions', + 'Privacy Policy\nTerms and conditions', }, preferencesModal: { title: 'Consent Preferences Center', diff --git a/v3/src/components/common/Scamming.jsx b/v3/src/components/common/Scamming.jsx new file mode 100644 index 0000000..1d65e41 --- /dev/null +++ b/v3/src/components/common/Scamming.jsx @@ -0,0 +1,46 @@ +import React, { useState, useEffect } from 'react'; + +const ScammingBanner = () => { + const [isHide, setHide] = useState(true); + + useEffect(() => { + const hideScammer = localStorage.getItem('hide-scammer'); + if (hideScammer !== 'Y') { + setHide(false); + } + }, []); + + const handleClose = () => { + setHide(true); + localStorage.setItem('hide-scammer', 'Y'); + }; + + if (isHide === true) { + return null; + } + + return ( +