on master help sign in
GatewayImage: allow for background colours
c3736d1Matilde Park
components/gateway/Image.js+9
@@ -34,6 +34,15 @@ const GatewayImage = ({
34 );
34 );
35 }
35 }
36
36
37+ if (image?.startsWith("#")) {
38+ return (
39+ <div
40+ style={{ height: size, width: size, backgroundColor: image }}
41+ className="rounded-xl"
42+ />
43+ );
44+ }
45+
37 return image ? (
46 return image ? (
38 <img
47 <img
39 className="rounded-xl"
48 className="rounded-xl"