Files
com.blitzwallet/context-store/toastContainer.js
T
Blake KaufmanandGitHub d93b29d6c8 Auto buy (#882)
* building send and replace settings context

* adding translations

* fixing double parse

* adding spend and replace flags to send txs

* adding listener to handle sar payments

* add tx descripion handler for sar payments in restore

* making sure sar key is fetched during app load

* split toast manager and toast continer

* adding tests

* adding custom sar payment title to toast message

* removing spark sdk navigation

* adding sarPayment mark to transaction table

* pass poolInfoRef from context to remove fetch if value is already set

* remove spark naviagtion listener

* fix btc -> usd swaps not calling sar

* finalize spend and replace

* fix timeout mismatch

* adding usablePaymentMethod to narrow eligiblility

* block requsets if account switches

* remove duplicate storage and keep all referances to keyscontext

* steralize writes to fix overlap issue
2026-05-30 14:38:06 -04:00

30 lines
888 B
JavaScript

import React from 'react';
import { View } from 'react-native';
import { Toast } from '../app/screens/toast';
import { useGlobalContextProvider } from './context';
import { useNodeContext } from './nodeContext';
import { useSparkWallet } from './sparkContext';
import { useToast } from './toastManager';
export const ToastContainer = () => {
const { toasts, hideToast } = useToast();
const { fiatStats } = useNodeContext();
const { sparkInformation } = useSparkWallet();
const { masterInfoObject } = useGlobalContextProvider();
return (
<View pointerEvents="box-none">
{toasts.map(toast => (
<Toast
key={toast.id}
toast={toast}
onHide={() => hideToast(toast.id)}
fiatStats={fiatStats}
sparkInformation={sparkInformation}
masterInfoObject={masterInfoObject}
/>
))}
</View>
);
};