We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 906d533 commit 83c6e09Copy full SHA for 83c6e09
src/ImageGallery.tsx
@@ -8,7 +8,7 @@ export function ImageGallery({
8
columnWidth = 230,
9
gapSize = 24,
10
fixedCaption = false,
11
- customStyles = undefined,
+ customStyles = {},
12
}: ImageGalleryPropsType) {
13
const [imageSrc, setImageSrc] = useState<string | undefined>(undefined);
14
const [slideNumber, setSlideNumber] = useState(1);
src/ImageGalleryStyles.ts
@@ -5,7 +5,7 @@ export function imageGalleryStyles(
5
columnWidth?: string | number,
6
gapSize?: number,
7
fixedCaption?: boolean
-) : ImageGalleryStylesType {
+): ImageGalleryStylesType {
const galleryContainerStyle: React.CSSProperties = {
columnCount,
columnWidth: `${columnWidth}px`,
0 commit comments