From ee55bb381258e596bf88eeca074b6bf27a407a36 Mon Sep 17 00:00:00 2001 From: Fredrik Thorsson Date: Mon, 11 Nov 2024 11:26:09 +0100 Subject: [PATCH] fix(SW-719): update function name --- components/TempDesignSystem/Card/index.tsx | 4 ++-- components/TempDesignSystem/Card/utils.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/TempDesignSystem/Card/index.tsx b/components/TempDesignSystem/Card/index.tsx index 329f8e7c3..a1f938489 100644 --- a/components/TempDesignSystem/Card/index.tsx +++ b/components/TempDesignSystem/Card/index.tsx @@ -8,8 +8,8 @@ import Title from "@/components/TempDesignSystem/Text/Title" import { getBodyFontColor, + getButtonTheme, getScriptFontColor, - getTheme, getTitleFontColor, } from "./utils" import { cardVariants } from "./variants" @@ -33,7 +33,7 @@ export default function Card({ onPrimaryButtonClick, onSecondaryButtonClick, }: CardProps) { - const buttonTheme = getTheme(theme) + const buttonTheme = getButtonTheme(theme) const titleFontColor = getTitleFontColor(theme) const scriptFontColor = getScriptFontColor(theme) const bodyFontColor = getBodyFontColor(theme) diff --git a/components/TempDesignSystem/Card/utils.ts b/components/TempDesignSystem/Card/utils.ts index ad5d3707b..d796b3f69 100644 --- a/components/TempDesignSystem/Card/utils.ts +++ b/components/TempDesignSystem/Card/utils.ts @@ -76,7 +76,9 @@ export function getBodyFontColor( } } -export function getTheme(theme: CardProps["theme"]): ButtonProps["theme"] { +export function getButtonTheme( + theme: CardProps["theme"] +): ButtonProps["theme"] { switch (theme) { case "two": return "secondaryLight"