mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 09:27:23 +00:00
Rearrange components
This commit is contained in:
parent
7e2de6b269
commit
9f1057ed2f
16 changed files with 14 additions and 11 deletions
|
|
@ -1,31 +0,0 @@
|
|||
import { h } from 'preact'
|
||||
import { Link } from 'wouter-preact'
|
||||
|
||||
const fail = (details) => (
|
||||
<div className='status fail'>
|
||||
<h1>
|
||||
Error
|
||||
</h1>
|
||||
{details.map((x) => (<p key={x}>{x}</p>))}
|
||||
<hr />
|
||||
<Link href='/'>
|
||||
Home
|
||||
</Link>
|
||||
|
|
||||
<a
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
href='https://github.com/He4eT/elseifplayer/issues'>
|
||||
Report bug
|
||||
</a>
|
||||
</div>
|
||||
)
|
||||
|
||||
const loading = (details) => (
|
||||
<div className='status loading'>
|
||||
{details.map((x) => (<div key={x}>{x}</div>))}
|
||||
</div>
|
||||
)
|
||||
|
||||
export default ({ stage, details }) =>
|
||||
({ fail, loading })[stage](details)
|
||||
Loading…
Add table
Add a link
Reference in a new issue