Skip to content

Commit

Permalink
PORTALS-3242
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson committed Sep 25, 2024
1 parent ba13b01 commit b5b830b
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions apps/SageAccountWeb/src/components/RegisterAccount2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { Button, TextField, Typography } from '@mui/material'
import { StyledFormControl } from './StyledComponents'
import React, { useEffect, useState } from 'react'
import { displayToast, SynapseClient } from 'synapse-react-client'
import { AliasType } from '@sage-bionetworks/synapse-types'
import {
AliasType,
EmailValidationSignedToken,
} from '@sage-bionetworks/synapse-types'
import { getSearchParam, hexDecodeAndDeserialize } from '../URLUtils'
import { LeftRightPanel } from './LeftRightPanel'
import { SourceAppLogo } from './SourceApp'
Expand All @@ -16,9 +19,9 @@ export const RegisterAccount2 = (props: RegisterAccount2Props) => {
const [lastName, setLastName] = useState('')
const [password1, setPassword1] = useState('')
const [password2, setPassword2] = useState('')
const [emailValidationSignedToken, setEmailValidationSignedToken] = useState(
undefined as any,
)
const [emailValidationSignedToken, setEmailValidationSignedToken] = useState<
EmailValidationSignedToken | undefined
>(undefined)

const emailValidationSignedTokenValue = getSearchParam(
'emailValidationSignedToken',
Expand Down Expand Up @@ -95,6 +98,22 @@ export const RegisterAccount2 = (props: RegisterAccount2Props) => {
<SourceAppLogo />
</div>
<div className="form-wrapper">
<StyledFormControl
fullWidth
required
variant="standard"
margin="normal"
>
<TextField
fullWidth
required
label={'Email'}
id="email"
name="email"
disabled
value={emailValidationSignedToken?.email ?? ''}
/>
</StyledFormControl>
<StyledFormControl
fullWidth
required
Expand Down

0 comments on commit b5b830b

Please sign in to comment.