diff --git a/src/app/components/body-units/body-units.tsx b/src/app/components/body-units/body-units.tsx index fd8afc2aa..510891761 100644 --- a/src/app/components/body-units/body-units.tsx +++ b/src/app/components/body-units/body-units.tsx @@ -17,8 +17,8 @@ type CTAData = { alignment: string; heading: string; description: string; - button_href: string; - button_text: string; + buttonHref: string; + buttonText: string; }; function CTA({data}: {data: CTAData}) { @@ -28,8 +28,8 @@ function CTA({data}: {data: CTAData}) {
); diff --git a/test/src/components/body-units.test.tsx b/test/src/components/body-units.test.tsx index 3563c9e85..609024f34 100644 --- a/test/src/components/body-units.test.tsx +++ b/test/src/components/body-units.test.tsx @@ -47,7 +47,6 @@ describe('body-units', () => { screen.getByText('terrible mistake', {exact: false}); }); it('handles CTA', () => { - /* eslint-disable camelcase */ const unit: UnitType = { id: 'meh', type: 'blog_cta', @@ -55,8 +54,8 @@ describe('body-units', () => { alignment: 'left', heading: 'Heading', description: 'description text', - button_href: '#', - button_text: 'click me' + buttonHref: '#', + buttonText: 'click me' } }; diff --git a/test/src/data/article-page-data.js b/test/src/data/article-page-data.js index 0aa431b0d..371f2a9da 100644 --- a/test/src/data/article-page-data.js +++ b/test/src/data/article-page-data.js @@ -115,8 +115,8 @@ export default { alignment: 'left', heading: 'Heading', description: 'description text', - button_href: '#', - button_text: 'click me' + buttonHref: '#', + buttonText: 'click me' } }, {