goToWalletPage(Pages.manual_withdraw)
}
/>
(
{
setDismissed(true);
route(Pages.balance);
}}
/>
)}
/>
goToWalletPage(Pages.transaction.replace(":tid", tid))
}
/>
{
route(Pages.provider_add);
}}
/>
{
route(Pages.backup);
}}
/>
{
route(Pages.backup);
}}
/>
);
}
function goToWalletPage(page: Pages | string): null {
chrome.tabs.create({
active: true,
url: chrome.extension.getURL(`/static/wallet.html#${page}`),
});
return null;
}
function Redirect({ to }: { to: string }): null {
useEffect(() => {
route(to, true);
});
return null;
}