Skip to content

Commit

Permalink
fix: fixed relative imports + added classname to cta container
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni committed Nov 18, 2024
1 parent 80adbd2 commit 121a166
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import blockIcon from '@redturtle/volto-blocks/icons/calltoaction.svg';
import type { CallToActionData } from '@redturtle/volto-blocks/components/blocks/CallToAction/schema';

import config from '@plone/registry';
import CTA from '../commons/CTA';
import CTA from '@redturtle/volto-blocks/components/blocks/commons/CTA';

type CallToActionEditProps = BlockEditProps & {
data: CallToActionData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import styles from '@redturtle/volto-blocks/components/blocks/CallToAction/style
import type { CallToActionData } from '@redturtle/volto-blocks/components/blocks/CallToAction/schema';

import config from '@plone/registry';
import CTA from '../commons/CTA';
import CTA from '@redturtle/volto-blocks/components/blocks/commons/CTA';

type Props = BlockViewProps & {
data: CallToActionData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import blockIcon from '@redturtle/volto-blocks/icons/cardwithimages.svg';
import type { CardWithImagesData } from '@redturtle/volto-blocks/components/blocks/CardWithImages/schema';

import config from '@plone/registry';
import CTA from '../commons/CTA';
import CTA from '@redturtle/volto-blocks/components/blocks/commons/CTA';

type CardWithImagesEditProps = BlockEditProps & {
data: CardWithImagesData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import styles from '@redturtle/volto-blocks/components/blocks/CardWithImages/sty
import type { CardWithImagesData } from '@redturtle/volto-blocks/components/blocks/CardWithImages/schema';

import config from '@plone/registry';
import CTA from '../commons/CTA';
import CTA from '@redturtle/volto-blocks/components/blocks/commons/CTA';

type Props = BlockViewProps & {
data: CardWithImagesData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { defineMessages, useIntl } from 'react-intl';
import { v4 as uuid } from 'uuid';

import config from '@plone/registry';
import CTA from '../commons/CTA';
import CTA from '@redturtle/volto-blocks/components/blocks/commons/CTA';

type IconsAndTextEditProps = BlockEditProps & {
data: IconsAndTextData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ViewItem from '@redturtle/volto-blocks/components/blocks/IconsAndText/Vie
import type { IconsAndTextData } from '@redturtle/volto-blocks/components/blocks/IconsAndText/schema';
import styles from '@redturtle/volto-blocks/components/blocks/IconsAndText/styles.module.scss';
import cx from 'classnames';
import CTA from '../commons/CTA';
import CTA from '@redturtle/volto-blocks/components/blocks/commons/CTA';

type Props = BlockViewProps & {
data: IconsAndTextData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import blockIcon from '@redturtle/volto-blocks/icons/pageintro.svg';
import type { PageIntroData } from '@redturtle/volto-blocks/components/blocks/PageIntro/schema';

import config from '@plone/registry';
import CTA from '../commons/CTA';
import CTA from '@redturtle/volto-blocks/components/blocks/commons/CTA';

type PageIntroEditProps = BlockEditProps & {
data: PageIntroData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import styles from '@redturtle/volto-blocks/components/blocks/PageIntro/styles.m
import type { PageIntroData } from '@redturtle/volto-blocks/components/blocks/PageIntro/schema';

import config from '@plone/registry';
import CTA from '../commons/CTA';
import CTA from '@redturtle/volto-blocks/components/blocks/commons/CTA';

type Props = BlockViewProps & {
data: PageIntroData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import blockIcon from '@redturtle/volto-blocks/icons/text7.svg';
import type { TestimonialsData } from '@redturtle/volto-blocks/components/blocks/Testimonials/schema';

import config from '@plone/registry';
import CTA from '../commons/CTA';
import CTA from '@redturtle/volto-blocks/components/blocks/commons/CTA';

type TestimonialsEditProps = BlockEditProps & {
data: TestimonialsData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import styles from '@redturtle/volto-blocks/components/blocks/Testimonials/style
import type { TestimonialsData } from '@redturtle/volto-blocks/components/blocks/Testimonials/schema';

import config from '@plone/registry';
import CTA from '../commons/CTA';
import CTA from '@redturtle/volto-blocks/components/blocks/commons/CTA';

type Props = BlockViewProps & {
data: TestimonialsData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { UniversalLink } from '@plone/volto/components';
const CTA = (props: ComponentProps<typeof UniversalLink>) => {
const { href, linkTitle, onClick, openLinkInNewTab } = props;
return (
<div>
<div className="blocks-cta">
<UniversalLink
href={href}
openLinkInNewTab={openLinkInNewTab}
Expand Down

0 comments on commit 121a166

Please sign in to comment.