mirror of
https://github.com/project-gauntlet/gauntlet.git
synced 2025-12-23 10:35:53 +00:00
Fix list empty view image being too big
This commit is contained in:
parent
b2094be545
commit
d9b60d5e63
5 changed files with 24 additions and 10 deletions
12
dev_plugin/src/empty-list.tsx
Normal file
12
dev_plugin/src/empty-list.tsx
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { ReactElement } from "react";
|
||||
import { List } from "@project-gauntlet/api/components";
|
||||
|
||||
const alderaanImage = "https://static.wikia.nocookie.net/starwars/images/4/4a/Alderaan.jpg/revision/latest?cb=20061211013805"
|
||||
|
||||
export default function EmptyListView(): ReactElement {
|
||||
return (
|
||||
<List>
|
||||
<List.EmptyView title="Nothing here" description="But there was something" image={{ url: alderaanImage }}/>
|
||||
</List>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue