From e0a5fcdb8eeffa53e7c6f07e182b21310f74da28 Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Wed, 13 Apr 2022 10:26:16 -0500 Subject: [PATCH] fix: add message about third-party cookies (#45672) --- client/i18n/locales/english/intro.json | 1 + client/i18n/locales/english/translations.json | 4 ++-- client/src/components/settings/user-token.tsx | 1 + client/src/templates/Challenges/codeally/show.tsx | 7 ++++++- cypress/integration/settings/user-token.js | 6 ++++-- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/client/i18n/locales/english/intro.json b/client/i18n/locales/english/intro.json index 68b2282c03..0ae0e32d16 100644 --- a/client/i18n/locales/english/intro.json +++ b/client/i18n/locales/english/intro.json @@ -768,6 +768,7 @@ "viewing-upcoming-change": "You are looking at a beta page. ", "go-back-to-learn": "Go back to the stable version of the curriculum.", "read-database-cert-article": "Please read this forum post before proceeding.", + "enable-cookies": "You must enable third-party cookies before starting.", "english-only": "The courses in this section are only available in English. We are only able to translate the titles and introductions at the moment, not the lessons themselves." } } diff --git a/client/i18n/locales/english/translations.json b/client/i18n/locales/english/translations.json index 6ef080514c..b127f31ce1 100644 --- a/client/i18n/locales/english/translations.json +++ b/client/i18n/locales/english/translations.json @@ -68,8 +68,8 @@ "ask-later": "Ask me later", "start-coding": "Start coding!", "go-to-settings": "Go to settings to claim your certification", - "click-start-course": "Click here to start the course", - "click-start-project": "Click here to start the project" + "click-start-course": "Start the course", + "click-start-project": "Start the project" }, "landing": { "big-heading-1": "Learn to code — for free.", diff --git a/client/src/components/settings/user-token.tsx b/client/src/components/settings/user-token.tsx index 82576d8533..6daf9bad7c 100644 --- a/client/src/components/settings/user-token.tsx +++ b/client/src/components/settings/user-token.tsx @@ -42,6 +42,7 @@ class UserToken extends Component { bsSize='lg' bsStyle='danger' className='btn-info' + data-cy='delete-user-token' onClick={this.deleteToken} type='button' > diff --git a/client/src/templates/Challenges/codeally/show.tsx b/client/src/templates/Challenges/codeally/show.tsx index 64a1786c33..6fd66637a1 100644 --- a/client/src/templates/Challenges/codeally/show.tsx +++ b/client/src/templates/Challenges/codeally/show.tsx @@ -1,5 +1,5 @@ // Package Utilities -import { Grid, Col, Row, Button } from '@freecodecamp/react-bootstrap'; +import { Alert, Grid, Col, Row, Button } from '@freecodecamp/react-bootstrap'; import { graphql } from 'gatsby'; import React, { Component } from 'react'; import Helmet from 'react-helmet'; @@ -300,9 +300,14 @@ class ShowCodeAlly extends Component { : '' }`} > + +

{t(`intro:misc-text.enable-cookies`)}

+