From 690bfeb4968963fb841774017d13b40cbe306cbd Mon Sep 17 00:00:00 2001 From: Exidex <16986685+Exidex@users.noreply.github.com> Date: Sun, 4 Aug 2024 19:33:03 +0200 Subject: [PATCH] Migrate to new image source api --- src/starwars-locations.tsx | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/src/starwars-locations.tsx b/src/starwars-locations.tsx index 6ff27fc..6af4080 100644 --- a/src/starwars-locations.tsx +++ b/src/starwars-locations.tsx @@ -1,46 +1,35 @@ -import {ReactElement} from "react"; -import {Grid} from "@project-gauntlet/api/components"; -import {assetData} from "@project-gauntlet/api/helpers"; +import { ReactElement } from "react"; +import { Grid } from "@project-gauntlet/api/components"; export default function StarWarsLocations(): ReactElement { - const nabooImage = assetData("naboo.jpg"); - const dagobahImage = assetData("dagobah.jpg"); - const rylothImage = assetData("ryloth.jpg"); - const tatooineImage = assetData("tatooine.jpg"); - const deathstarImage = assetData("deathstar.jpg"); - const endorImage = assetData("endor.jpg"); - const coruscantImage = assetData("coruscant.jpg"); - const dathomirImage = assetData("dathomir.jpg"); - const dantooineImage = assetData("dantooine.jpg"); - return ( - + - + - + - + - + - + - + - + - + )