From 5f90a9210b7e470b0e523972ef108a70327b00e0 Mon Sep 17 00:00:00 2001 From: Konstantin Arabei Date: Fri, 12 May 2023 21:39:51 +0700 Subject: [PATCH 1/2] translate javascript in jsx with curly braces --- src/components/MDX/Challenges/Challenge.tsx | 8 +- src/components/MDX/ExpandableCallout.tsx | 2 +- src/components/MDX/MDXComponents.tsx | 2 +- src/components/MDX/Recap.tsx | 2 +- .../javascript-in-jsx-with-curly-braces.md | 220 +++++++++--------- 5 files changed, 118 insertions(+), 116 deletions(-) diff --git a/src/components/MDX/Challenges/Challenge.tsx b/src/components/MDX/Challenges/Challenge.tsx index 24e99541c..b66d5a99b 100644 --- a/src/components/MDX/Challenges/Challenge.tsx +++ b/src/components/MDX/Challenges/Challenge.tsx @@ -63,14 +63,14 @@ export function Challenge({
) : ( @@ -80,7 +80,7 @@ export function Challenge({ onClick={toggleSolution} active={showSolution}> {' '} - {showSolution ? 'Hide solution' : 'Show solution'} + {showSolution ? 'Скрыть решение' : 'Показать решение'} ) )} @@ -109,7 +109,7 @@ export function Challenge({ {currentChallenge.solution}
{hasNextChallenge && (
) : ( @@ -80,7 +80,7 @@ export function Challenge({ onClick={toggleSolution} active={showSolution}> {' '} - {showSolution ? 'Скрыть решение' : 'Показать решение'} + {showSolution ? 'Hide solution' : 'Show solution'} ) )} @@ -109,7 +109,7 @@ export function Challenge({ {currentChallenge.solution}
{hasNextChallenge && (