Skip to content

Commit

Permalink
Actually use the use param
Browse files Browse the repository at this point in the history
  • Loading branch information
AWare authored and philmcmahon committed Nov 28, 2019
1 parent dadb632 commit 0de44fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/Mallard/src/components/front/image-resource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ const ImageResource = ({
image,
style,
setAspectRatio = false,
use, //eslint-disable-line
use,
...props
}: ImageResourceProps) => {
const [width, setWidth] = useState<number | null>(null)
const imagePath = useImagePath(image, 'full-size') //TODO: This should be changed to use once we have a good amount of content published with trail thumbs
const imagePath = useImagePath(image, use)
const aspectRatio = useAspectRatio(imagePath)
const styles = [style, setAspectRatio && aspectRatio ? { aspectRatio } : {}]

Expand Down

0 comments on commit 0de44fe

Please sign in to comment.