Fix list empty view image being too big

This commit is contained in:
Exidex 2025-01-07 20:44:21 +01:00
parent b2094be545
commit d9b60d5e63
No known key found for this signature in database
GPG key ID: 46D8D21671EB48FA
5 changed files with 24 additions and 10 deletions

View 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>
)
}