mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 09:27:23 +00:00
ThemesView: ESlint
This commit is contained in:
parent
06ab174928
commit
36e55de7b1
1 changed files with 8 additions and 6 deletions
|
|
@ -3,7 +3,7 @@ import { Link } from 'wouter-preact'
|
||||||
|
|
||||||
import './ThemesView.css'
|
import './ThemesView.css'
|
||||||
|
|
||||||
const Preview = (themeEngine) => (theme) =>
|
const Preview = (themeEngine, theme) =>
|
||||||
<section key={theme} className={`themePreview ${theme}`}>
|
<section key={theme} className={`themePreview ${theme}`}>
|
||||||
<div className='output'>
|
<div className='output'>
|
||||||
<div className='message input'>
|
<div className='message input'>
|
||||||
|
|
@ -25,7 +25,9 @@ const Preview = (themeEngine) => (theme) =>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
export default function ThemesView ({ themeEngine }) {
|
export default function ThemesView ({ themeEngine }) {
|
||||||
const themes = themeEngine.themes.map(Preview(themeEngine))
|
const themes = themeEngine
|
||||||
|
.themes
|
||||||
|
.map((theme) => Preview(themeEngine, theme))
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className='view themes'>
|
<main className='view themes'>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue