@pradip1995/theme-valero 3.0.0 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "@
|
|
1
|
+
export { default } from "@modules/account/components/forgot-password"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "@
|
|
1
|
+
export { default } from "@modules/account/components/login"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { useState } from "react"
|
|
3
|
+
import { Suspense, useState } from "react"
|
|
4
4
|
|
|
5
5
|
import { LOGIN_VIEW } from "@core/types/account"
|
|
6
6
|
import type { AccountPageData } from "@core/types/account"
|
|
@@ -8,6 +8,7 @@ import Login from "@theme/slots/account/Login"
|
|
|
8
8
|
import Register from "@theme/slots/account/Register"
|
|
9
9
|
import ForgotPassword from "@theme/slots/account/ForgotPassword"
|
|
10
10
|
import { colorClasses } from "@theme/tokens"
|
|
11
|
+
import Spinner from "@modules/common/icons/spinner"
|
|
11
12
|
|
|
12
13
|
type LoginTemplateProps = Pick<AccountPageData, "countryCode">
|
|
13
14
|
|
|
@@ -36,7 +37,15 @@ export default function LoginTemplate(_props: LoginTemplateProps) {
|
|
|
36
37
|
className={`w-full ${colorClasses.pageBg} rounded-2xl shadow-lg p-4 min-[340px]:p-5 min-[550px]:p-6 sm:p-7 md:p-8`}
|
|
37
38
|
style={{ maxWidth: "560px" }}
|
|
38
39
|
>
|
|
39
|
-
|
|
40
|
+
<Suspense
|
|
41
|
+
fallback={
|
|
42
|
+
<div className="flex justify-center py-12">
|
|
43
|
+
<Spinner />
|
|
44
|
+
</div>
|
|
45
|
+
}
|
|
46
|
+
>
|
|
47
|
+
{renderView()}
|
|
48
|
+
</Suspense>
|
|
40
49
|
</div>
|
|
41
50
|
</div>
|
|
42
51
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "@
|
|
1
|
+
export { default } from "@modules/account/components/register"
|