ThemesView: ESlint

This commit is contained in:
He4eT 2023-05-28 02:55:51 +03:00 committed by Alexey
commit 5863134c3e

View file

@ -3,7 +3,7 @@ import { Link } from 'wouter-preact'
import './ThemesView.css'
const Preview = (themeEngine) => (theme) =>
const Preview = (themeEngine, theme) =>
<section key={theme} className={`themePreview ${theme}`}>
<div className='output'>
<div className='message input'>
@ -25,7 +25,9 @@ const Preview = (themeEngine) => (theme) =>
</section>
export default function ThemesView ({ themeEngine }) {
const themes = themeEngine.themes.map(Preview(themeEngine))
const themes = themeEngine
.themes
.map((theme) => Preview(themeEngine, theme))
return (
<main className='view themes'>