From 522cc1f2c647cac5c0ddb1c3fd295c1d1a906eea Mon Sep 17 00:00:00 2001 From: amandaesmith333 Date: Thu, 27 Apr 2023 14:00:19 -0500 Subject: [PATCH] fix(docsdemo, playground): add keys to list items --- src/components/global/DocDemo/index.js | 1 + src/components/global/Playground/index.tsx | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/global/DocDemo/index.js b/src/components/global/DocDemo/index.js index d43d6ed2f8a..b7611be1910 100644 --- a/src/components/global/DocDemo/index.js +++ b/src/components/global/DocDemo/index.js @@ -48,6 +48,7 @@ const DocDemo = (props) => { })} title={`Toggle ${mode === 'ios' ? 'iOS' : 'Android'} mode`} onClick={() => setIonicMode(mode)} + key={mode} > {mode === 'ios' ? 'iOS' : 'Android'} diff --git a/src/components/global/Playground/index.tsx b/src/components/global/Playground/index.tsx index 2ef8505f1e0..6de23298974 100644 --- a/src/components/global/Playground/index.tsx +++ b/src/components/global/Playground/index.tsx @@ -567,22 +567,22 @@ export default function Playground({ {renderIframes ? [ -
+
{!iframesLoaded && renderLoadingScreen()} {/* - We render two iframes, one for each mode. - When the set mode changes, we hide one frame and - show the other. This is done to avoid flickering - and doing unnecessary reloads when switching modes. - */} + We render two iframes, one for each mode. + When the set mode changes, we hide one frame and + show the other. This is done to avoid flickering + and doing unnecessary reloads when switching modes. + */} {devicePreview ? [ -
+
, -
+
@@ -590,6 +590,7 @@ export default function Playground({ ] : [ ,