fix(SW-719): update function name

This commit is contained in:
Fredrik Thorsson
2024-11-11 11:26:09 +01:00
parent b0aed971ea
commit ee55bb3812
2 changed files with 5 additions and 3 deletions

View File

@@ -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)

View File

@@ -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"