aboutsummaryrefslogtreecommitdiff
path: root/modern/src/components/registration/RegisterForm.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/components/registration/RegisterForm.js')
-rw-r--r--modern/src/components/registration/RegisterForm.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/components/registration/RegisterForm.js b/modern/src/components/registration/RegisterForm.js
index d515b641..11dd510e 100644
--- a/modern/src/components/registration/RegisterForm.js
+++ b/modern/src/components/registration/RegisterForm.js
@@ -6,6 +6,7 @@ import { useHistory } from 'react-router-dom';
import ArrowBackIcon from '@material-ui/icons/ArrowBack';
import StartPage from '../../StartPage';
import { useTranslation } from '../../LocalizationProvider';
+import { snackBarDurationShortMs } from '../../common/duration';
const useStyles = makeStyles((theme) => ({
title: {
@@ -49,7 +50,7 @@ const RegisterForm = () => {
anchorOrigin={{ vertical: 'top', horizontal: 'center' }}
open={snackbarOpen}
onClose={() => history.push('/login')}
- autoHideDuration={6000}
+ autoHideDuration={snackBarDurationShortMs}
message={t('loginCreated')}
/>
<Grid container direction="column" spacing={2}>