Skip to content

Commit

Permalink
Adding Class Option back to Image Component (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayaraman19 authored Feb 15, 2024
1 parent 3f04636 commit c49cd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Image = ({ nodeData, className }) => {
const widthOption = getNestedValue(['options', 'width'], nodeData);
let height = getNestedValue(['options', 'height'], nodeData);
const loading = getNestedValue(['options', 'loading'], nodeData);
const directiveClass = getNestedValue(['options', 'directiveClass'], nodeData);
const directiveClass = getNestedValue(['options', 'class'], nodeData);

let imgSrc = getNestedValue(['argument', 0, 'value'], nodeData);
const altText = getNestedValue(['options', 'alt'], nodeData) || imgSrc;
Expand Down

0 comments on commit c49cd90

Please sign in to comment.