forked from boos/BoosAPI
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:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user