feat: 支持饮水记录卡片

This commit is contained in:
richarjiang
2025-09-02 15:50:35 +08:00
parent ed694f6142
commit 85a3c742df
16 changed files with 2066 additions and 56 deletions

View File

@@ -1,4 +1,5 @@
import SuccessToast from '@/components/ui/SuccessToast';
import { Colors } from '@/constants/Colors';
import { setToastRef } from '@/utils/toast.utils';
import React, { createContext, useContext, useEffect, useRef, useState } from 'react';
@@ -43,7 +44,7 @@ export function ToastProvider({ children }: { children: React.ReactNode }) {
showToast({
message,
duration,
backgroundColor: '#DF42D0', // 主题色
backgroundColor: Colors.light.primary, // 主题色
icon: '✓',
});
};