fix(web): wire AddChannelModal with missing token hints and channel context

Pass missingTokenHints, onCreateTokenForMissing, and
existingChannelAccountIds to AddChannelModal so users can see
accounts that need token creation and identify already-added channels.
This commit is contained in:
Hureru
2026-03-11 12:00:07 +08:00
parent d2e1e7765d
commit 90f92711fd
+3
View File
@@ -1020,6 +1020,9 @@ export default function TokenRoutes() {
routeTitle={resolveRouteTitle(addChannelModalRoute)} routeTitle={resolveRouteTitle(addChannelModalRoute)}
candidateView={getRouteCandidateView(addChannelModalRoute.id)} candidateView={getRouteCandidateView(addChannelModalRoute.id)}
onSuccess={handleAddChannelSuccess} onSuccess={handleAddChannelSuccess}
missingTokenHints={routeMissingTokenIndex[addChannelModalRoute.id] || []}
onCreateTokenForMissing={handleCreateTokenForMissingAccount}
existingChannelAccountIds={new Set((channelsByRouteId[addChannelModalRoute.id] || []).map((c) => c.accountId))}
/> />
)} )}
</div> </div>