From 5863134c3ed97531485c92399c645d0225e6f5b1 Mon Sep 17 00:00:00 2001 From: He4eT Date: Sun, 28 May 2023 02:55:51 +0300 Subject: [PATCH] ThemesView: ESlint --- src/views/ThemesView/ThemesView.jsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/ThemesView/ThemesView.jsx b/src/views/ThemesView/ThemesView.jsx index cf07db5..9b6e243 100644 --- a/src/views/ThemesView/ThemesView.jsx +++ b/src/views/ThemesView/ThemesView.jsx @@ -3,13 +3,13 @@ import { Link } from 'wouter-preact' import './ThemesView.css' -const Preview = (themeEngine) => (theme) => +const Preview = (themeEngine, theme) =>
> look
-

+

{theme}
@@ -17,7 +17,7 @@ const Preview = (themeEngine) => (theme) => Observe a vibrant demonstration of colors at work, showcasing their versatile usage right before your eyes.
-

+

export default function ThemesView ({ themeEngine }) { - const themes = themeEngine.themes.map(Preview(themeEngine)) + const themes = themeEngine + .themes + .map((theme) => Preview(themeEngine, theme)) return (
@@ -47,7 +49,7 @@ export default function ThemesView ({ themeEngine }) {
> look
-

+

Selected: {themeEngine.currentTheme}
@@ -55,7 +57,7 @@ export default function ThemesView ({ themeEngine }) { You can set random one with the button below or choose any theme from the list. -

+