fix(SW-719): update function name
This commit is contained in:
@@ -8,8 +8,8 @@ import Title from "@/components/TempDesignSystem/Text/Title"
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
getBodyFontColor,
|
getBodyFontColor,
|
||||||
|
getButtonTheme,
|
||||||
getScriptFontColor,
|
getScriptFontColor,
|
||||||
getTheme,
|
|
||||||
getTitleFontColor,
|
getTitleFontColor,
|
||||||
} from "./utils"
|
} from "./utils"
|
||||||
import { cardVariants } from "./variants"
|
import { cardVariants } from "./variants"
|
||||||
@@ -33,7 +33,7 @@ export default function Card({
|
|||||||
onPrimaryButtonClick,
|
onPrimaryButtonClick,
|
||||||
onSecondaryButtonClick,
|
onSecondaryButtonClick,
|
||||||
}: CardProps) {
|
}: CardProps) {
|
||||||
const buttonTheme = getTheme(theme)
|
const buttonTheme = getButtonTheme(theme)
|
||||||
const titleFontColor = getTitleFontColor(theme)
|
const titleFontColor = getTitleFontColor(theme)
|
||||||
const scriptFontColor = getScriptFontColor(theme)
|
const scriptFontColor = getScriptFontColor(theme)
|
||||||
const bodyFontColor = getBodyFontColor(theme)
|
const bodyFontColor = getBodyFontColor(theme)
|
||||||
|
|||||||
@@ -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) {
|
switch (theme) {
|
||||||
case "two":
|
case "two":
|
||||||
return "secondaryLight"
|
return "secondaryLight"
|
||||||
|
|||||||
Reference in New Issue
Block a user