Skip to content

Commit

Permalink
Merge pull request #675 from DTS-STN/sch-211658-tandc
Browse files Browse the repository at this point in the history
Sch 211658 tandc
  • Loading branch information
shewood authored Jun 27, 2024
2 parents be14aab + 4ba1ed6 commit 788f3d0
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 674 deletions.
3 changes: 3 additions & 0 deletions __mocks__/utils.mock.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { TextEncoder, TextDecoder } from 'util'

Object.assign(global, { TextDecoder, TextEncoder })

// for testing locally comment.
// process.env.AUTH_DISABLED= "true"
106 changes: 0 additions & 106 deletions __tests__/pages/privacy-notice-terms-conditions.test.js

This file was deleted.

57 changes: 39 additions & 18 deletions components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,24 +147,45 @@ export default function Layout(props) {

<IdleTimeout locale={props.locale} refPageAA={props.refPageAA} />

<Footer
lang={!props.locale ? 'en' : props.locale}
brandLinks={[
{
href: t.footerTermsAndConditionURL,
id: 'linkTC',
text: t.footerTermsAndCondition,
},
{
href: t.footerPrivacyURL,
id: 'linkPR',
text: t.footerPrivacy,
},
]}
contactLink={contactLink}
btnLink="#top"
id="page-footer"
/>
{process.env.ENVIRONMENT === 'production' ? (
<Footer
lang={!props.locale ? 'en' : props.locale}
brandLinks={[
{
href: t.footerTermsAndConditionURL,
id: 'linkTC',
text: t.footerTermsAndCondition,
},
{
href: t.footerPrivacyURL,
id: 'linkPR',
text: t.footerPrivacy,
},
]}
contactLink={contactLink}
btnLink="#top"
id="page-footer"
/>
) : (
<Footer
lang={!props.locale ? 'en' : props.locale}
brandLinks={[
{
href: t.footerTermsAndConditionDevURL,
id: 'linkTC',
text: t.footerTermsAndCondition,
},
{
href: t.footerPrivacyDevURL,
id: 'linkPR',
text: t.footerPrivacy,
},
]}
contactLink={contactLink}
btnLink="#top"
id="page-footer"
/>
)}
</>
)
}
Expand Down
80 changes: 0 additions & 80 deletions cypress/e2e/termsConditions.cy.js

This file was deleted.

123 changes: 0 additions & 123 deletions graphql/mappers/privacy-notice-terms-conditions.ts

This file was deleted.

Loading

0 comments on commit 788f3d0

Please sign in to comment.