|
@@ -14,7 +14,7 @@ import { RegistrationMode } from '~/interfaces/registration-mode';
|
|
|
import { toArrayIfNot } from '~/utils/array-utils';
|
|
import { toArrayIfNot } from '~/utils/array-utils';
|
|
|
|
|
|
|
|
import { CompleteUserRegistration } from './CompleteUserRegistration';
|
|
import { CompleteUserRegistration } from './CompleteUserRegistration';
|
|
|
-
|
|
|
|
|
|
|
+import { LoadingSpinner } from './LoadingSpinner';
|
|
|
|
|
|
|
|
import styles from './LoginForm.module.scss';
|
|
import styles from './LoginForm.module.scss';
|
|
|
|
|
|
|
@@ -238,8 +238,11 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
|
|
|
>
|
|
>
|
|
|
<div className="eff"></div>
|
|
<div className="eff"></div>
|
|
|
<span className="btn-label">
|
|
<span className="btn-label">
|
|
|
- {/* spinner.Tentative decision meiri-k 11.17 */}
|
|
|
|
|
- <span className="material-symbols-outlined">{isLoading ? 'hoge' : 'login'}</span>
|
|
|
|
|
|
|
+ {isLoading ? (
|
|
|
|
|
+ <LoadingSpinner />
|
|
|
|
|
+ ) : (
|
|
|
|
|
+ <span className="material-symbols-outlined">login</span>
|
|
|
|
|
+ )}
|
|
|
</span>
|
|
</span>
|
|
|
<span className="btn-label-text">{t('Sign in')}</span>
|
|
<span className="btn-label-text">{t('Sign in')}</span>
|
|
|
</button>
|
|
</button>
|
|
@@ -513,8 +516,11 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
|
|
|
>
|
|
>
|
|
|
<div className="eff"></div>
|
|
<div className="eff"></div>
|
|
|
<span className="btn-label">
|
|
<span className="btn-label">
|
|
|
- {/* spinner.Tentative decision meiri-k 11.17 */}
|
|
|
|
|
- <span className="material-symbols-outlined">{isLoading ? 'hoge' : 'login'}</span>
|
|
|
|
|
|
|
+ {isLoading ? (
|
|
|
|
|
+ <LoadingSpinner />
|
|
|
|
|
+ ) : (
|
|
|
|
|
+ <span className="material-symbols-outlined">login</span>
|
|
|
|
|
+ )}
|
|
|
</span>
|
|
</span>
|
|
|
<span className="btn-label-text">{submitText}</span>
|
|
<span className="btn-label-text">{submitText}</span>
|
|
|
</button>
|
|
</button>
|