From 5b89be03b04dd02cde02d91128333cf897630b77 Mon Sep 17 00:00:00 2001 From: Rocio Gonzalez Date: Thu, 28 Dec 2023 15:33:07 -0300 Subject: [PATCH] Revert "Para huayra. Nuevos personajes en libros" This reverts commit 88a3009bf03a6ea291be0258c9719b2c61995da7. --- src/components/home/BookCards.tsx | 9 +++++++++ src/staticData/books.ts | 11 ++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/components/home/BookCards.tsx b/src/components/home/BookCards.tsx index c1f7f0a3..32160c67 100644 --- a/src/components/home/BookCards.tsx +++ b/src/components/home/BookCards.tsx @@ -3,6 +3,9 @@ import { LinkCard } from "./HomeCard" import { useTranslation } from "react-i18next" import styles from './home.module.css'; +const SURGE_HOST = 'pbdevelop.surge.sh' //This is needed to show the new exercises in surge +const shouldShow = process.env.NODE_ENV !== 'production' || window.location.host === SURGE_HOST + const InitialBookCard = () => { const {t} = useTranslation("home") return @@ -18,10 +21,16 @@ const AdvancedBookCard = () => { return } +const NewChallengesBookCard = () => { + const {t} = useTranslation("home") + return +} + export const BookCards = () => ( + {shouldShow ? :<>} ) diff --git a/src/staticData/books.ts b/src/staticData/books.ts index d1101dfc..2b17865e 100644 --- a/src/staticData/books.ts +++ b/src/staticData/books.ts @@ -46,7 +46,7 @@ const rawBooksData: RawBookData[] = [ }, { id: 2, - chapterIds: ['1','2','3','4'], + chapterIds: ['Autómatas, comandos, procedimientos y repetición', 'Alternativa condicional', 'Repetición condicional', 'Sensores Numéricos'], simpleReadMode: false, expectations: { decomposition: true @@ -54,10 +54,15 @@ const rawBooksData: RawBookData[] = [ }, { id: 3, - chapterIds: ['5'], + chapterIds: ['Parametrización de soluciones'], simpleReadMode: false, expectations: { decomposition: true } - } + }, + { + id: 1000, + chapterIds: ['1','2','3','4','5'], + simpleReadMode: false + }, ];