Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arjun Jhukal
sweepstake
Commits
c0301948
Commit
c0301948
authored
Nov 01, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the player form to client side
parent
6d3db139
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
layout.tsx
src/app/layout.tsx
+2
-2
index.tsx
src/components/pages/auth/login/index.tsx
+3
-3
No files found.
src/app/layout.tsx
View file @
c0301948
...
@@ -51,14 +51,14 @@ export default function RootLayout({
...
@@ -51,14 +51,14 @@ export default function RootLayout({
<
html
lang=
"en"
>
<
html
lang=
"en"
>
{
/* className="dark" */
}
{
/* className="dark" */
}
<
body
className=
{
`${inter.className} scroll-smooth`
}
cz
-
shortcut
-
listen=
"true"
>
<
body
className=
{
`${inter.className} scroll-smooth`
}
cz
-
shortcut
-
listen=
"true"
>
<
SeonProvider
>
{
/* <SeonProvider> */
}
<
ProviderWrapper
>
<
ProviderWrapper
>
<
React
.
Suspense
fallback=
{
<
div
/>
}
>
<
React
.
Suspense
fallback=
{
<
div
/>
}
>
<
TopLoader
/>
<
TopLoader
/>
</
React
.
Suspense
>
</
React
.
Suspense
>
{
children
}
{
children
}
</
ProviderWrapper
>
</
ProviderWrapper
>
</
SeonProvider
>
{
/* </SeonProvider> */
}
</
body
>
</
body
>
</
html
>
</
html
>
);
);
...
...
src/components/pages/auth/login/index.tsx
View file @
c0301948
...
@@ -14,7 +14,7 @@ import { showToast, ToastVariant } from '@/slice/toastSlice';
...
@@ -14,7 +14,7 @@ import { showToast, ToastVariant } from '@/slice/toastSlice';
import
{
clearTokens
,
setTokens
}
from
'@/slice/authSlice'
;
import
{
clearTokens
,
setTokens
}
from
'@/slice/authSlice'
;
import
PasswordField
from
'@/components/molecules/PasswordField'
;
import
PasswordField
from
'@/components/molecules/PasswordField'
;
import
{
ArrowLeft
}
from
'@wandersonalwes/iconsax-react'
;
import
{
ArrowLeft
}
from
'@wandersonalwes/iconsax-react'
;
import
{
useSeon
}
from
'@/app/SeonProvider'
;
//
import { useSeon } from '@/app/SeonProvider';
const
validationSchema
=
Yup
.
object
().
shape
({
const
validationSchema
=
Yup
.
object
().
shape
({
emailAddress
:
Yup
.
string
()
emailAddress
:
Yup
.
string
()
...
@@ -39,7 +39,7 @@ export default function LoginPage() {
...
@@ -39,7 +39,7 @@ export default function LoginPage() {
const
router
=
useRouter
();
const
router
=
useRouter
();
const
dispatch
=
useAppDispatch
();
const
dispatch
=
useAppDispatch
();
const
[
loginUser
,
{
isLoading
}]
=
useLoginMutation
();
const
[
loginUser
,
{
isLoading
}]
=
useLoginMutation
();
const
{
deviceId
,
loading
}
=
useSeon
();
//
const { deviceId, loading } = useSeon();
const
{
handleSubmit
,
handleBlur
,
handleChange
,
errors
,
dirty
,
values
,
touched
}
=
useFormik
(
const
{
handleSubmit
,
handleBlur
,
handleChange
,
errors
,
dirty
,
values
,
touched
}
=
useFormik
(
{
{
initialValues
,
initialValues
,
...
@@ -49,7 +49,7 @@ export default function LoginPage() {
...
@@ -49,7 +49,7 @@ export default function LoginPage() {
const
response
=
await
loginUser
({
const
response
=
await
loginUser
({
email
:
values
.
emailAddress
,
email
:
values
.
emailAddress
,
password
:
values
.
password
,
password
:
values
.
password
,
device_id
:
deviceId
//
device_id:deviceId
}).
unwrap
();
}).
unwrap
();
dispatch
(
dispatch
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment