feat: 支持饮水记录卡片
This commit is contained in:
@@ -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: '✓',
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user