From dab23c2fa0cd09fddeecacbd289c7052172c9172 Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust <24361490+mathiazom@users.noreply.github.com> Date: Fri, 20 Sep 2024 05:44:35 +0000 Subject: [PATCH] feat: remove theme option for Callout and CallToAction (#680) --- .../sections/callToAction/CallToAction.tsx | 5 +---- .../sections/callToAction/callToAction.module.css | 9 +-------- src/components/sections/callout/Callout.tsx | 3 +-- src/components/sections/callout/callout.module.css | 7 ------- studio/lib/interfaces/pages.ts | 4 ---- studio/schemas/fields/theme.ts | 14 -------------- studio/schemas/objects/sections/callToAction.ts | 2 -- studio/schemas/objects/sections/callout.ts | 3 +-- 8 files changed, 4 insertions(+), 43 deletions(-) delete mode 100644 studio/schemas/fields/theme.ts diff --git a/src/components/sections/callToAction/CallToAction.tsx b/src/components/sections/callToAction/CallToAction.tsx index e49544450..d68e5de9d 100644 --- a/src/components/sections/callToAction/CallToAction.tsx +++ b/src/components/sections/callToAction/CallToAction.tsx @@ -9,11 +9,8 @@ interface CallToActionProps { } const CallToAction = ({ callToAction }: CallToActionProps) => { - const theme = - callToAction.theme === "primary" ? styles.primary : styles.secondary; - return ( -
+
{callToAction?.basicTitle}