Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
Replace learn staging URL by preprod URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ofreyssinet-ledger committed Apr 19, 2022
1 parent 051fd9e commit 4a32774
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/renderer/screens/learn/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import LoadingScreen from "./LoadingScreen";
import NoConnectionScreen from "./NoConnectionScreen";
import ErrorScreen from "./ErrorScreen";
import { getPagePaddingLeft, getPagePaddingRight } from "~/renderer/components/Page";
import palettes from "~/renderer/styles/palettes";

const Container = styled(Flex).attrs({
flex: 1,
Expand All @@ -28,7 +27,7 @@ const Iframe = styled.iframe`
`;

const learnProdURL = "https://www.ledger.com/ledger-live-learn";
const learnStagingURL = "https://ecommerce-website.aws.stg.ldg-tech.com/ledger-live-learn";
const learnStagingURL = "https://www-ppr.ledger.com/ledger-live-learn";
const TIMEOUT = 60 * 1000;

/** TODO: once design & wording are ready, implement properly */
Expand All @@ -46,16 +45,11 @@ const TimeoutScreen = () => (

export default function LearnScreen() {
const { i18n } = useTranslation();
const theme = useTheme();
const themeType: string = useTheme("colors.palette.type");
const useStagingUrl = useSelector(enableLearnPageStagingUrlSelector);
const params = new URLSearchParams({
theme: themeType,
lang: i18n.languages[0],
pagePaddingLeft: `${getPagePaddingLeft({ theme })}px`,
pagePaddingRight: `${getPagePaddingRight({ theme })}px`,
darkBackgroundColor: `${palettes.dark.background.default}`,
lightBackgroundColor: `${palettes.light.background.default}`,
});
const uri = `${useStagingUrl ? learnStagingURL : learnProdURL}?${params.toString()}`;

Expand Down

1 comment on commit 4a32774

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint outputs ✅

Tests outputs ✅

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
PASS src/generate-cryptoassets-md.test.js

Test Suites: 1 skipped, 1 passed, 1 of 2 total
Tests: 5 skipped, 1 passed, 6 total
Snapshots: 0 total
Time: 2.369 s
Test results written to: report.json

Diff output ❌

linux

Actual Diff Expected

| market-btc-page-actual | market-btc-page-diff | market-btc-page-expected |
| market-btc-page-actual | market-btc-page-diff | market-btc-page-expected |

windows

Actual Diff Expected

| devMode-on-actual | devMode-on-diff | devMode-on-expected |
| devMode-on-actual | devMode-on-diff | devMode-on-expected |

| experimental-features-actual | experimental-features-diff | experimental-features-expected |
| experimental-features-actual | experimental-features-diff | experimental-features-expected |

Please sign in to comment.