Skip to content

Commit

Permalink
[templates/nextjs-sxa] fixed eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Matkovskyi committed Dec 13, 2023
1 parent f4a3980 commit 8a35746
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { CSSProperties } from 'react';
import {
Image as JssImage,
Link as JssLink,
Expand Down Expand Up @@ -35,7 +35,9 @@ export const Banner = (props: ImageProps): JSX.Element => {
isPageEditing && props.fields?.Image?.value?.class === 'scEmptyImage'
? 'hero-banner-empty'
: '';
const backgroundStyle = props?.fields?.Image?.value?.src && { backgroundImage: `url('${props.fields.Image.value.src}')` };
const backgroundStyle = (props?.fields?.Image?.value?.src && {
backgroundImage: `url('${props.fields.Image.value.src}')`,
}) as CSSProperties;
const modifyImageProps = {
...props.fields.Image,
editable: props?.fields?.Image?.editable
Expand Down

0 comments on commit 8a35746

Please sign in to comment.