Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 Savoir-faire Linux Inc. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU Affero General Public License as |
| 6 | * published by the Free Software Foundation; either version 3 of the |
| 7 | * License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU Affero General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Affero General Public |
| 15 | * License along with this program. If not, see |
| 16 | * <https://www.gnu.org/licenses/>. |
| 17 | */ |
Gabriel Rochon | 7057b4f | 2022-11-21 13:28:01 -0500 | [diff] [blame] | 18 | import { |
| 19 | Box, |
| 20 | Button, |
| 21 | FormControl, |
| 22 | FormControlLabel, |
| 23 | Radio, |
| 24 | RadioGroup, |
| 25 | Stack, |
| 26 | Typography, |
| 27 | useMediaQuery, |
| 28 | } from '@mui/material'; |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 29 | import { Theme, useTheme } from '@mui/material/styles'; |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 30 | import { HttpStatusCode } from 'jami-web-common'; |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 31 | import { ChangeEvent, FormEvent, useContext, useEffect, useState } from 'react'; |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 32 | import { useTranslation } from 'react-i18next'; |
Ziwei Wang | 3ce1ac0 | 2023-02-03 11:59:03 -0500 | [diff] [blame] | 33 | import { Form, Link, useNavigate } from 'react-router-dom'; |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 34 | |
simon | ab4eec8 | 2022-11-08 20:32:43 -0500 | [diff] [blame] | 35 | import { NameStatus, PasswordInput, PasswordStatus, UsernameInput } from '../components/Input'; |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 36 | import ProcessingRequest from '../components/ProcessingRequest'; |
Ziwei Wang | 3ce1ac0 | 2023-02-03 11:59:03 -0500 | [diff] [blame] | 37 | import withAuthUI from '../components/WithAuthUI'; |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 38 | import { AlertSnackbarContext } from '../contexts/AlertSnackbarProvider'; |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 39 | import { |
| 40 | checkIfUserameIsRegistered, |
| 41 | checkPasswordStrength, |
| 42 | loginUser, |
| 43 | registerUser, |
| 44 | setAccessToken, |
| 45 | } from '../utils/auth'; |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 46 | import { inputWidth, jamiUsernamePattern } from '../utils/constants'; |
Ziwei Wang | 3ce1ac0 | 2023-02-03 11:59:03 -0500 | [diff] [blame] | 47 | function RegistrationForm() { |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 48 | const theme: Theme = useTheme(); |
Michelle Sepkap Sime | e580f42 | 2022-10-31 23:27:04 -0400 | [diff] [blame] | 49 | const navigate = useNavigate(); |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 50 | const { t } = useTranslation(); |
| 51 | |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 52 | const [loading, setLoading] = useState(false); |
Michelle Sepkap Sime | e580f42 | 2022-10-31 23:27:04 -0400 | [diff] [blame] | 53 | |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 54 | const [username, setUsername] = useState<string>(''); |
| 55 | const [password, setPassword] = useState<string>(''); |
| 56 | const [isJams, setIsJams] = useState<boolean>(false); |
Michelle Sepkap Sime | e580f42 | 2022-10-31 23:27:04 -0400 | [diff] [blame] | 57 | |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 58 | const [usernameStatus, setUsernameStatus] = useState<NameStatus>('default'); |
| 59 | const [passwordStatus, setPasswordStatus] = useState<PasswordStatus>('default'); |
| 60 | |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 61 | const { setAlertContent } = useContext(AlertSnackbarContext); |
Michelle Sepkap Sime | e580f42 | 2022-10-31 23:27:04 -0400 | [diff] [blame] | 62 | |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 63 | const isMobile: boolean = useMediaQuery(theme.breakpoints.only('xs')); |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 64 | |
| 65 | useEffect(() => { |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 66 | let timetoutId: ReturnType<typeof setTimeout>; |
| 67 | if (usernameStatus === 'valid') { |
| 68 | timetoutId = setTimeout(() => { |
| 69 | // useCheckIfUsernameIsRegisteredMutation.mutate(username); |
| 70 | checkIfUserameIsRegistered(username) |
| 71 | .then((response) => { |
| 72 | //server responds 200 if name IS found |
| 73 | if (response.status === HttpStatusCode.Ok) { |
| 74 | setUsernameStatus('taken'); |
| 75 | } |
| 76 | }) |
| 77 | .catch((e) => { |
| 78 | // console.log(e.response.data); |
| 79 | const { status } = e.response; |
| 80 | if (status === HttpStatusCode.BadRequest) { |
| 81 | //TODO: server sends invalid username as the message, add it to the locale |
| 82 | // console.log(e.response.data); |
| 83 | setUsernameStatus('invalid'); |
| 84 | } else if (status === HttpStatusCode.NotFound) { |
| 85 | //TODO: server didn't find this username, therefore it can be registered, add the message to the locale |
| 86 | // console.log(e.response.data); |
| 87 | setUsernameStatus('success'); |
| 88 | } else { |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 89 | setAlertContent({ messageI18nKey: 'unknown_error_alert', severity: 'error', alertOpen: true }); |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 90 | } |
| 91 | }); |
| 92 | }, 1000); |
| 93 | } |
| 94 | |
| 95 | return () => { |
| 96 | clearTimeout(timetoutId); |
| 97 | }; |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 98 | }, [t, username, usernameStatus, setAlertContent]); |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 99 | |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 100 | const login = () => { |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 101 | setLoading(true); |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 102 | |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 103 | loginUser(username, password, isJams) |
| 104 | .then((response) => { |
| 105 | if (response.status === HttpStatusCode.Ok) { |
| 106 | setAccessToken(response.data.accessToken); |
| 107 | navigate('/conversation', { replace: true }); |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 108 | } |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 109 | }) |
| 110 | .catch((e) => { |
| 111 | console.log(e); |
| 112 | const { status } = e.response; |
| 113 | if (status === HttpStatusCode.BadRequest) { |
| 114 | //TODO: the only bad request response defined in the server is missing credentials. add the response message to the locale. |
| 115 | console.log(e.response.data); |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 116 | // setAlertContent(t('unknown_error_alert')); |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 117 | } else if (status === HttpStatusCode.NotFound) { |
| 118 | //TODO: there are two different not found responses that could be returned by the server, use message to differentiate them? |
| 119 | console.log(e.response.data); |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 120 | // setAlertContent(t('login_username_not_found')); |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 121 | } else if (status === HttpStatusCode.Unauthorized) { |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 122 | setAlertContent({ messageI18nKey: 'login_invalid_password', severity: 'error', alertOpen: true }); |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 123 | } else { |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 124 | setAlertContent({ messageI18nKey: 'unknown_error_alert', severity: 'error', alertOpen: true }); |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 125 | } |
| 126 | }) |
| 127 | .finally(() => { |
| 128 | setLoading(false); |
| 129 | }); |
Michelle Sepkap Sime | e580f42 | 2022-10-31 23:27:04 -0400 | [diff] [blame] | 130 | }; |
| 131 | |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 132 | const createAccount = () => { |
| 133 | setLoading(true); |
| 134 | registerUser(username, password, isJams) |
| 135 | .then((response) => { |
| 136 | if (response.status === HttpStatusCode.Created) { |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 137 | setAlertContent({ messageI18nKey: 'registration_success', severity: 'success', alertOpen: true }); |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 138 | login(); |
| 139 | } |
| 140 | }) |
| 141 | .catch((e) => { |
| 142 | console.log(e); |
| 143 | const { status } = e.response; |
| 144 | if (status === HttpStatusCode.BadRequest) { |
| 145 | //TODO: more than one bad request response defined in the server is missing credentials. add the response message to the locale. |
| 146 | console.log(e.response.data); |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 147 | // setAlertContent(t('unknown_error_alert')); |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 148 | } else if (status === HttpStatusCode.Conflict) { |
| 149 | //TODO: there are two different conflict responses that could be returned by the server, use message to differentiate them? |
| 150 | console.log(e.response.data); |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 151 | // setAlertContent(t('login_username_not_found')); |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 152 | } else if (status === HttpStatusCode.Unauthorized) { |
| 153 | //TODO: this is a response for JAMS, add message to the locale |
| 154 | } else { |
Ziwei Wang | 49765ec | 2023-02-13 16:35:32 -0500 | [diff] [blame^] | 155 | setAlertContent({ messageI18nKey: 'unknown_error_alert', severity: 'error', alertOpen: true }); |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 156 | } |
| 157 | }) |
| 158 | .finally(() => { |
| 159 | setLoading(false); |
| 160 | }); |
Michelle Sepkap Sime | e580f42 | 2022-10-31 23:27:04 -0400 | [diff] [blame] | 161 | }; |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 162 | |
| 163 | const handleUsername = async (event: ChangeEvent<HTMLInputElement>) => { |
Michelle Sepkap Sime | e580f42 | 2022-10-31 23:27:04 -0400 | [diff] [blame] | 164 | const usernameValue: string = event.target.value; |
| 165 | setUsername(usernameValue); |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 166 | |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 167 | if (usernameValue === '') { |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 168 | setUsernameStatus('default'); |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 169 | return; |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 170 | } |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 171 | |
| 172 | if (!jamiUsernamePattern.test(usernameValue)) { |
| 173 | setUsernameStatus('invalid'); |
| 174 | return; |
| 175 | } |
| 176 | //The valid state is when the username passes the Regex test and is ready for availability check. |
| 177 | setUsernameStatus('valid'); |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 178 | }; |
| 179 | |
| 180 | const handlePassword = (event: ChangeEvent<HTMLInputElement>) => { |
Michelle Sepkap Sime | e580f42 | 2022-10-31 23:27:04 -0400 | [diff] [blame] | 181 | const passwordValue: string = event.target.value; |
| 182 | setPassword(passwordValue); |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 183 | |
Michelle Sepkap Sime | e580f42 | 2022-10-31 23:27:04 -0400 | [diff] [blame] | 184 | if (passwordValue.length > 0) { |
| 185 | const checkResult = checkPasswordStrength(passwordValue); |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 186 | setPasswordStatus(checkResult.valueCode); |
| 187 | } else { |
| 188 | setPasswordStatus('default'); |
| 189 | } |
| 190 | }; |
| 191 | |
Gabriel Rochon | 7057b4f | 2022-11-21 13:28:01 -0500 | [diff] [blame] | 192 | const handleIsJams = (event: ChangeEvent<HTMLInputElement>) => { |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 193 | setIsJams(event.target.value === 'jams'); |
Gabriel Rochon | 7057b4f | 2022-11-21 13:28:01 -0500 | [diff] [blame] | 194 | }; |
| 195 | |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 196 | const handleSubmit = async (event: FormEvent) => { |
| 197 | event.preventDefault(); |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 198 | const usernameOk = usernameStatus === 'success'; |
| 199 | const passwordOk = passwordStatus === 'strong'; |
| 200 | |
| 201 | const canCreate = usernameOk && passwordOk; |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 202 | |
| 203 | if (canCreate) { |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 204 | createAccount(); |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 205 | } else { |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 206 | if (!usernameOk) { |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 207 | setUsernameStatus('registration_failed'); |
| 208 | } |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 209 | if (!passwordOk) { |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 210 | setPasswordStatus('registration_failed'); |
| 211 | } |
| 212 | } |
| 213 | }; |
| 214 | |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 215 | return ( |
| 216 | <> |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 217 | <ProcessingRequest open={loading} /> |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 218 | |
| 219 | <Stack |
| 220 | sx={{ |
| 221 | minHeight: `${isMobile ? 'auto' : '100%'}`, |
| 222 | display: 'flex', |
| 223 | alignItems: 'center', |
| 224 | justifyContent: 'center', |
| 225 | }} |
| 226 | > |
| 227 | <Box sx={{ mt: theme.typography.pxToRem(50), mb: theme.typography.pxToRem(20) }}> |
| 228 | <Typography component={'span'} variant="h2"> |
Michelle Sepkap Sime | 559cc80 | 2022-11-05 12:06:40 -0400 | [diff] [blame] | 229 | {t('registration_form_title')} |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 230 | </Typography> |
| 231 | </Box> |
| 232 | |
| 233 | <Form method="post" id="register-form"> |
| 234 | <div> |
| 235 | <UsernameInput |
Michelle Sepkap Sime | e580f42 | 2022-10-31 23:27:04 -0400 | [diff] [blame] | 236 | value={username} |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 237 | onChange={handleUsername} |
simon | ab4eec8 | 2022-11-08 20:32:43 -0500 | [diff] [blame] | 238 | status={usernameStatus} |
Michelle Sepkap Sime | 559cc80 | 2022-11-05 12:06:40 -0400 | [diff] [blame] | 239 | tooltipTitle={t('registration_form_username_tooltip')} |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 240 | sx={{ width: theme.typography.pxToRem(inputWidth) }} |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 241 | /> |
| 242 | </div> |
| 243 | <div> |
| 244 | <PasswordInput |
Michelle Sepkap Sime | e580f42 | 2022-10-31 23:27:04 -0400 | [diff] [blame] | 245 | value={password} |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 246 | onChange={handlePassword} |
simon | ab4eec8 | 2022-11-08 20:32:43 -0500 | [diff] [blame] | 247 | status={passwordStatus} |
Michelle Sepkap Sime | 559cc80 | 2022-11-05 12:06:40 -0400 | [diff] [blame] | 248 | tooltipTitle={t('registration_form_password_tooltip')} |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 249 | sx={{ width: theme.typography.pxToRem(inputWidth) }} |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 250 | /> |
| 251 | </div> |
Gabriel Rochon | 7057b4f | 2022-11-21 13:28:01 -0500 | [diff] [blame] | 252 | <div> |
| 253 | <FormControl |
| 254 | sx={{ |
| 255 | width: theme.typography.pxToRem(inputWidth), |
| 256 | alignItems: 'center', |
| 257 | justifyContent: 'space-between', |
| 258 | }} |
| 259 | > |
Ziwei Wang | 9b4e2c1 | 2023-02-06 14:45:37 -0500 | [diff] [blame] | 260 | <RadioGroup row onChange={handleIsJams} defaultValue="jami"> |
| 261 | <FormControlLabel value="jami" control={<Radio />} label={t('jami')} /> |
| 262 | <FormControlLabel value="jams" control={<Radio />} label={t('jams')} /> |
Gabriel Rochon | 7057b4f | 2022-11-21 13:28:01 -0500 | [diff] [blame] | 263 | </RadioGroup> |
| 264 | </FormControl> |
| 265 | </div> |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 266 | |
| 267 | <Button |
| 268 | variant="contained" |
| 269 | type="submit" |
| 270 | onClick={handleSubmit} |
| 271 | sx={{ width: theme.typography.pxToRem(inputWidth), mt: theme.typography.pxToRem(20) }} |
| 272 | > |
Michelle Sepkap Sime | 559cc80 | 2022-11-05 12:06:40 -0400 | [diff] [blame] | 273 | {t('registration_form_submit_button')} |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 274 | </Button> |
| 275 | </Form> |
| 276 | |
| 277 | <Box sx={{ mt: theme.typography.pxToRem(50), mb: theme.typography.pxToRem(50) }}> |
| 278 | <Typography variant="body1"> |
Michelle Sepkap Sime | 559cc80 | 2022-11-05 12:06:40 -0400 | [diff] [blame] | 279 | {t('registration_form_to_login_text')} |
Ziwei Wang | 3ce1ac0 | 2023-02-03 11:59:03 -0500 | [diff] [blame] | 280 | <Link to={'/login'}>{t('registration_form_to_login_link')}</Link> |
Michelle Sepkap Sime | 51c0045 | 2022-10-31 21:26:38 -0400 | [diff] [blame] | 281 | </Typography> |
| 282 | </Box> |
| 283 | </Stack> |
| 284 | </> |
| 285 | ); |
| 286 | } |
Ziwei Wang | 3ce1ac0 | 2023-02-03 11:59:03 -0500 | [diff] [blame] | 287 | |
| 288 | export default withAuthUI(RegistrationForm); |