修改这个文件
This commit is contained in:
@@ -27,9 +27,18 @@ function CalendarDay({ day, value, type }: CalendarDayProps) {
|
|||||||
const dayTextStyle = isCurrent
|
const dayTextStyle = isCurrent
|
||||||
? "text-[#fcfcfd]"
|
? "text-[#fcfcfd]"
|
||||||
: "text-[#9ca1af] dark:text-gray-400";
|
: "text-[#9ca1af] dark:text-gray-400";
|
||||||
const valueTextStyle = isCurrent
|
|
||||||
? "text-[#fcfcfd]"
|
// Value text color should match the type
|
||||||
: "text-[#111827] dark:text-white";
|
let valueTextStyle = "";
|
||||||
|
if (isCurrent) {
|
||||||
|
valueTextStyle = "text-[#fcfcfd]";
|
||||||
|
} else if (type === "positive") {
|
||||||
|
valueTextStyle = "text-[#10b981] dark:text-green-400";
|
||||||
|
} else if (type === "negative") {
|
||||||
|
valueTextStyle = "text-[#dc2626] dark:text-red-400";
|
||||||
|
} else {
|
||||||
|
valueTextStyle = "text-[#9ca1af] dark:text-gray-400";
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user