More style cleanup for database listing
This commit is contained in:
parent
e3db564175
commit
bb3486f559
2 changed files with 11 additions and 4 deletions
|
@ -28,10 +28,10 @@ export default ({ database }: { database: ServerDatabase }) => {
|
||||||
</div>
|
</div>
|
||||||
<div className={'ml-6'}>
|
<div className={'ml-6'}>
|
||||||
<button className={'btn btn-sm btn-secondary mr-2'}>
|
<button className={'btn btn-sm btn-secondary mr-2'}>
|
||||||
<FontAwesomeIcon icon={faEye}/>
|
<FontAwesomeIcon icon={faEye} fixedWidth={true}/>
|
||||||
</button>
|
</button>
|
||||||
<button className={'btn btn-sm btn-secondary btn-red'}>
|
<button className={'btn btn-sm btn-secondary btn-red'}>
|
||||||
<FontAwesomeIcon icon={faTrashAlt}/>
|
<FontAwesomeIcon icon={faTrashAlt} fixedWidth={true}/>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default () => {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={'my-10'}>
|
<div className={'my-10 mb-6'}>
|
||||||
<FlashMessageRender byKey={'databases'}/>
|
<FlashMessageRender byKey={'databases'}/>
|
||||||
{loading ?
|
{loading ?
|
||||||
<Spinner large={true} centered={true}/>
|
<Spinner large={true} centered={true}/>
|
||||||
|
@ -41,8 +41,15 @@ export default () => {
|
||||||
{databases.length > 0 ?
|
{databases.length > 0 ?
|
||||||
databases.map(database => <DatabaseRow key={database.id} database={database}/>)
|
databases.map(database => <DatabaseRow key={database.id} database={database}/>)
|
||||||
:
|
:
|
||||||
<p className={'text-sm text-neutral-200'}>No databases. :(</p>
|
<p className={'text-center text-sm text-neutral-200'}>
|
||||||
|
It looks like you have no databases. Click the button below to create one now.
|
||||||
|
</p>
|
||||||
}
|
}
|
||||||
|
<div className={'mt-6 text-right'}>
|
||||||
|
<button className={'btn btn-primary btn-lg'}>
|
||||||
|
Create Database
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
</CSSTransition>
|
</CSSTransition>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue