mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Linting
This commit is contained in:
parent
2f537a08f3
commit
0f8d413708
3 changed files with 11 additions and 11 deletions
|
|
@ -1,12 +1,7 @@
|
|||
import { h } from 'preact'
|
||||
|
||||
const INITIAL_STATUS = {
|
||||
stage: 'loading',
|
||||
details: 'Loading...'
|
||||
}
|
||||
|
||||
const fail = details => (
|
||||
<div class="status fail">
|
||||
<div class='status fail'>
|
||||
<h1>Error</h1>
|
||||
{details.map(x => (<p>{x}</p>))}
|
||||
<hr />
|
||||
|
|
@ -21,10 +16,10 @@ const fail = details => (
|
|||
)
|
||||
|
||||
const loading = details => (
|
||||
<div class="status loading">
|
||||
<div class='status loading'>
|
||||
{details.map(x => (<div>{x}</div>))}
|
||||
</div>
|
||||
)
|
||||
|
||||
export default ({ stage, details }) =>
|
||||
({fail, loading})[stage](details)
|
||||
({ fail, loading })[stage](details)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue