1import { useEffect } from 'react';
2import { Nothing } from 'folktale/maybe';
4import { useWallet } from 'store/wallet';
5import { usePointCursor } from 'store/pointCursor';
7// All the things we want to do when we mount a login view
8export default function useLoginView(walletType) {
9 const { setWalletType, resetWallet } = useWallet();
10 const { setPointCursor } = usePointCursor();
14 setWalletType(walletType);
15 setPointCursor(Nothing());
16 }, [setWalletType, walletType, setPointCursor, resetWallet]);
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list