src/app/components/FrostedGlassPromo/withData.tsx
Function buildImageProperties
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const buildImageProperties = (imageProps?: ImageProps) => {
const image =
imageProps?.path || imageProps?.locator ? imageProps : defaultImageProps;
const {
Function optimoPromoFormatter
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const optimoPromoFormatter = (props: PromoProps): FormattedPromo => {
const defaultPromoImage = pathOr<OptimoBlock[]>(
[],
['item', 'images', 'defaultPromoImage', 'blocks'],
props,