Skip to content

Commit

Permalink
style(secure channel): small styling tweaks for now :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed Jul 30, 2020
1 parent 79c0178 commit dc7af73
Showing 1 changed file with 31 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ const SignUpText = styled(Text)`
font-weight: 600;
}
`
const ChannelWrapper = styled(Wrapper)`
position: absolute;
right: -260px;
top: -60px;
z-index: -1;
width: 245px;
display: flex;
justify-content: center;
align-items: center;
`

const Login = (props: InjectedFormProps<{}, Props> & Props) => {
const {
Expand Down Expand Up @@ -175,30 +185,30 @@ const Login = (props: InjectedFormProps<{}, Props> & Props) => {
{console.info(
'SECURE CHANNEL STATE IS ' + props.secureChannelLoginState
)}
{props.secureChannelLoginState.cata({
Success: val => {
return (
<Wrapper>
<Text>Success! Logging in...</Text>
</Wrapper>
)
},
Failure: e => (
<Text>{typeof e === 'string' ? e : 'Unknown Error'}</Text>
),
Loading: () => {
return (
<Wrapper>
<Text>
<ChannelWrapper>
{props.secureChannelLoginState.cata({
Success: val => {
return (
<Text size='14px' weight={600}>
Success! Logging in...
</Text>
)
},
Failure: e => (
<Text>{typeof e === 'string' ? e : 'Unknown Error'}</Text>
),
Loading: () => {
return (
<Text size='14px' weight={600}>
Please confirm the login on your mobile device...
</Text>
</Wrapper>
)
},
NotAsked: () => (
<QRCodeWrapper value={qr_data} length={qr_data.length} />
)
},
NotAsked: () => (
<QRCodeWrapper value={qr_data} length={qr_data.length} />
)
})}
})}
</ChannelWrapper>

<FormLabel htmlFor='guid'>
<FormattedMessage
Expand Down

0 comments on commit dc7af73

Please sign in to comment.