From 1b7cb87af67cd81a0dffab196e3d93ad7d44a8a0 Mon Sep 17 00:00:00 2001 From: Vince Au Date: Tue, 23 Jan 2024 08:37:42 +1100 Subject: [PATCH] pass logo url via function --- .../bouncing_slippi_logo/bouncing_slippi_logo.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/renderer/components/bouncing_slippi_logo/bouncing_slippi_logo.tsx b/src/renderer/components/bouncing_slippi_logo/bouncing_slippi_logo.tsx index 43e0584b0..738d7c1dc 100644 --- a/src/renderer/components/bouncing_slippi_logo/bouncing_slippi_logo.tsx +++ b/src/renderer/components/bouncing_slippi_logo/bouncing_slippi_logo.tsx @@ -21,13 +21,14 @@ const styles = stylex.create({ height: "80px", width: "80px", }, - logo: { + logo: (logoUrl: string) => ({ + backgroundImage: `url("${logoUrl}")`, backgroundSize: "contain", backgroundRepeat: "no-repeat", position: "absolute", height: "60px", width: "80px", - }, + }), onlyBounce: { animation: `${bounceAnimation} 0.6s infinite alternate`, }, @@ -62,12 +63,12 @@ export const BouncingSlippiLogo = () => { return (
);