message: fix(content-block): add check for linklist and wrap in layout
diff: @@ -40,22 +40,8 @@ const ContentBlock = ({
  cta,
  linkList,
  }) => {
  - return linkList ? (
  - <div
  - data-autoid={`${stablePrefix}--content-block`}
  - className={cx(`${prefix}--content-block`, customClassName)}>
  - {heading && (
  - <Layout type="2-1">
  - <h2
  - data-autoid={`${stablePrefix}--content-block__heading`}
  - className={`${prefix}--content-block__heading`}>
  - {heading}
  - </h2>
  - <div></div>
  - </Layout>
  - )}
  - <Layout type="2-1">
  - <div>
  + const content = (
  + <>
  {copy && (
  <div
  className={`${prefix}--content-block__copy`}
  @@ -70,16 +56,11 @@ const ContentBlock = ({
  {children}
  </div>
  {cta && _renderCTA(cta)}
  - </div>
  + </>
  + );
  +
  + const title = (
  <div>
  - <LinkList {...linkList} />
  - </div>
  - </Layout>
  - </div>
  - ) : (
  - <div
  - data-autoid={`${stablePrefix}--content-block`}
  - className={cx(`${prefix}--content-block`, customClassName)}>
  {heading && (
  <h2
  data-autoid={`${stablePrefix}--content-block__heading`}
  @@ -87,26 +68,46 @@ const ContentBlock = ({
  {heading}
  </h2>
  )}
  - <div>
  - {copy && (
  - <div
  - className={`${prefix}--content-block__copy`}
  - dangerouslySetInnerHTML={{
  - __html: markdownToHtml(copy, { bold: false }),
  - }}
  - />
  - )}
  - <div
  - data-autoid={`${stablePrefix}--content-block__children`}
  - className={`${prefix}--content-block__children`}>
  - {children}
  </div>
  - {cta && _renderCTA(cta)}
  + );
  +
  + return (
  + <div
  + data-autoid={`${stablePrefix}--content-block`}
  + className={cx(`${prefix}--content-block`, customClassName)}>
  + {linkList
  + ? _layoutWrap(
  + <>
  + {title}
  + <div></div>
  + </>
  + )
  + : title}
  + {linkList
  + ? _layoutWrap(
  + <>
  + <div>{content}</div>
  + <div>
  + <LinkList {...linkList} />
  </div>
  + </>
  + )
  + : content}
  </div>
  );
  };
  +/**
  + * wraps content in layout component
  + *
  + * @private
  + * @param {Element} content content elements
  + * @returns {*} jsx cta component
  + */
  +const _layoutWrap = content => (
  + <Layout type="2-1">{content.props.children}</Layout>
  +);
  +
  /**
  * sets the class name based on theme type
  *
  