Skip to content

Commit

Permalink
Poor fix for react 18.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Plopix committed Apr 22, 2022
1 parent cb58aa5 commit 9aeb575
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/image/types.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { HTMLAttributes, FunctionComponent } from 'react';
import React, { FunctionComponent } from 'react';
import { ImageVariant, RichTextContent } from '@crystallize/js-api-client';

export interface ImageProps extends HTMLAttributes<HTMLImageElement> {
export interface ImageProps {
children?: FunctionComponent<any>;
src?: string;
url?: string;
sizes?: string;
altText?: string;
alt?: string;
media?: string;
style?: React.CSSProperties;
className?: string;
// The `html` content has higher priority than `plainText` because it has richer content.
// In case of getting both, the `html` is the one that will be displayed.
caption?: RichTextContent;
Expand Down

0 comments on commit 9aeb575

Please # to comment.