Skip to content

Commit

Permalink
fix: do not import directly from dist folder (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
andipaetzold authored Jan 20, 2025
2 parents c3c9e1e + cb7e06d commit 31a637e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/features/contentful/ctf-image/CtfImage.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { InspectorModeTags } from '@contentful/live-preview/dist/inspectorMode/types';
import type { ContentfulLivePreview } from '@contentful/live-preview';
import NextImage, { ImageProps as NextImageProps } from 'next/image';

import { ImageFieldsFragment } from '@src/lib/__generated/sdk';

interface ImageProps extends ImageFieldsFragment {
imageProps?: Omit<NextImageProps, 'src' | 'alt'>;
livePreviewProps?: InspectorModeTags;
livePreviewProps?: ReturnType<typeof ContentfulLivePreview.getProps>;
}

export const CtfImage = ({
Expand Down

0 comments on commit 31a637e

Please sign in to comment.