diff --git a/src/common/fidgets/FidgetWrapperEditMode.tsx b/src/common/fidgets/FidgetWrapperEditMode.tsx index 786f31c2..0e605be9 100644 --- a/src/common/fidgets/FidgetWrapperEditMode.tsx +++ b/src/common/fidgets/FidgetWrapperEditMode.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { FidgetEditConfig, FidgetSettings } from "@/common/fidgets/makeFidget"; +import { FidgetEditConfig, FidgetSettings } from "."; type FidgetWrapperSettingsEditorProps = { readonly editConfig: FidgetEditConfig; diff --git a/src/fidgets/ui/gallery.tsx b/src/fidgets/ui/gallery.tsx index 039475b8..0b63691b 100644 --- a/src/fidgets/ui/gallery.tsx +++ b/src/fidgets/ui/gallery.tsx @@ -1,5 +1,4 @@ -import React from 'react'; -import Image from "next/image"; +import React, { CSSProperties } from 'react'; import TextInput from "@/common/ui/molecules/TextInput"; import { FidgetEditConfig, FidgetModule } from "@/common/fidgets"; @@ -24,22 +23,15 @@ const galleryConfig: FidgetEditConfig = { }; const Gallery: React.FC = ({ imageUrl }: GalleryFidgetSettings) => { + const imageUrlStyle = { + '--image-url': `url(${imageUrl})`, + } as CSSProperties; + return (
- {/*
- -
- {imageUrl} */}
) }