From 828fb65cf461194e12760fa74af329d3d8ebc46c Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 9 Feb 2021 21:45:29 -0800 Subject: [PATCH] Refactor HTML5Badge let's de-dupe that stuff, baby! --- src/app/ItemPage.js | 133 ++++++++++++++++++++++---------------------- 1 file changed, 65 insertions(+), 68 deletions(-) diff --git a/src/app/ItemPage.js b/src/app/ItemPage.js index b848eb0..9383200 100644 --- a/src/app/ItemPage.js +++ b/src/app/ItemPage.js @@ -891,50 +891,36 @@ function HTML5Badge({ usesHTML5 }) { if (usesHTML5) { return ( - - + - - - {/* From Twemoji Keycap 5 */} - - - - + {/* From Twemoji Keycap 5 */} + + + ); } else { return ( - This item isn't converted to HTML5 yet, so it might not appear in Neopets.com customization yet. Once it's ready, it could look a bit @@ -943,40 +929,51 @@ function HTML5Badge({ usesHTML5 }) { } > - - - - {/* From Twemoji Keycap 5 */} - + + + {/* From Twemoji Keycap 5 */} + - {/* From Twemoji Not Allowed */} - - - - + {/* From Twemoji Not Allowed */} + + + ); } } +function HTML5BadgeLayout({ children, tooltipLabel, ...props }) { + return ( + + + {children} + + + ); +} + function PlayPauseButton({ isPaused, onClick }) { return (