dyne / starters

📐 Projects template starters of Dyne.org
7 stars 1 forks source link

Componentize the whole keypairoom flow in just one component #286

Open bbtgnn opened 10 months ago

bbtgnn commented 10 months ago

I would like to have a root <KeypairoomFlow> that returns the keypair at the very end. As a prop, it accepts the onEnd(keypair) function, so the user can do what it wants.

The flow is:

graph TD;
    login-->questions;
    login-->passphrase;
    questions-->seed;
    seed-->onEnd;
    passphrase-->onEnd;

Ideally, it would be nice to export slots for components, so that there's just the logic