From c5f1b459e6b47d87f8d7757fa3c79ccd5cca6fed Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Tue, 8 Sep 2020 16:14:10 +0200 Subject: [PATCH] Use CSSStyles instead of object --- src/components/assets/GraphCMSAsset.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/assets/GraphCMSAsset.tsx b/src/components/assets/GraphCMSAsset.tsx index ac0694178..6869c5ae1 100644 --- a/src/components/assets/GraphCMSAsset.tsx +++ b/src/components/assets/GraphCMSAsset.tsx @@ -9,6 +9,7 @@ import stylePropType from 'react-style-proptype'; import GraphCMSAssetPropTypes from '../../propTypes/GraphCMSAssetPropTypes'; import GraphCMSAssetTransformationsPropTypes from '../../propTypes/GraphCMSAssetTransformationsPropTypes'; +import { CSSStyles } from '../../types/CSSStyles'; import { Asset } from '../../types/data/Asset'; import { AssetTransformations } from '../../types/data/AssetTransformations'; import { Link } from '../../types/data/Link'; @@ -176,13 +177,13 @@ type Props = { defaults?: Asset; override?: Asset; className?: string; - style?: object; + style?: CSSStyles; onClick?: () => void; linkOverride?: { id?: string; url?: string; target?: string; - style?: object; + style?: CSSStyles; classes?: string; }; forcePNGOutput?: boolean;