Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Serialize and deserialize Connecting #1654

Merged
merged 9 commits into from
Dec 6, 2019
Merged

Serialize and deserialize Connecting #1654

merged 9 commits into from
Dec 6, 2019

Conversation

JustynaBroniszewska
Copy link
Member

No description provided.

@JustynaBroniszewska JustynaBroniszewska added the WIP Work In Progress label Dec 5, 2019
@JustynaBroniszewska JustynaBroniszewska force-pushed the redirect-connecting branch 2 times, most recently from 3f76a3d to c22802b Compare December 6, 2019 08:17
@JustynaBroniszewska JustynaBroniszewska changed the title WIP Redirect connecting Serialize and deserialize Connecting Dec 6, 2019
@JustynaBroniszewska JustynaBroniszewska removed the WIP Work In Progress label Dec 6, 2019
@JustynaBroniszewska JustynaBroniszewska force-pushed the redirect-connecting branch 2 times, most recently from bc34d91 to 2ddf440 Compare December 6, 2019 08:45
const {sdk, walletService} = useServices();
const history = useHistory();
const [name, setName] = useState<string | undefined>(undefined);
const [connectModal, setConnectModal] = useState<ConnectModal>('selector');
const defaultModal = walletState.kind === 'Connecting' ? 'connectionFlow' : 'selector';
const [connectModal, setConnectModal] = useState<ConnectModal>(defaultModal);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not make it a route?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR #1656

Comment on lines +26 to +28
walletService.initializeConnection(name).then(() => {
history.push('/connect/emoji');
});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not important, but i would like:
walletService.initializeConnection(name).then(() => history.push('/connect/emoji'));

marekkirejczyk
marekkirejczyk previously approved these changes Dec 6, 2019
marekkirejczyk
marekkirejczyk previously approved these changes Dec 6, 2019
xitronix
xitronix previously approved these changes Dec 6, 2019
@xitronix xitronix added the auto-merge Allow Mergify.io bot to update and merge the PR label Dec 6, 2019
cehali
cehali previously approved these changes Dec 6, 2019
@xitronix xitronix merged commit 65f8c3e into master Dec 6, 2019
@xitronix xitronix deleted the redirect-connecting branch December 6, 2019 10:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-merge Allow Mergify.io bot to update and merge the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants