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
bca7653b
Commit
bca7653b
authored
Oct 14, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the back to home in authentication
parent
e01753e5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
index.tsx
src/components/pages/auth/login/index.tsx
+3
-1
index.tsx
src/components/pages/auth/register/index.tsx
+2
-0
No files found.
src/components/pages/auth/login/index.tsx
View file @
bca7653b
...
@@ -13,6 +13,7 @@ import { useLoginMutation } from '@/services/authApi';
...
@@ -13,6 +13,7 @@ import { useLoginMutation } from '@/services/authApi';
import
{
showToast
,
ToastVariant
}
from
'@/slice/toastSlice'
;
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'
;
const
validationSchema
=
Yup
.
object
().
shape
({
const
validationSchema
=
Yup
.
object
().
shape
({
emailAddress
:
Yup
.
string
()
emailAddress
:
Yup
.
string
()
...
@@ -93,6 +94,7 @@ export default function LoginPage() {
...
@@ -93,6 +94,7 @@ export default function LoginPage() {
/>
/>
<
Box
className=
"auth__form__wrapper lg:w-[50%] p-8"
>
<
Box
className=
"auth__form__wrapper lg:w-[50%] p-8"
>
<
div
className=
"section__title mb-4 lg:mb-6"
>
<
div
className=
"section__title mb-4 lg:mb-6"
>
<
Link
href=
{
PATH
.
DASHBOARD
.
ROOT
}
className=
'text-[12px] leading-[120%] font-bold lg:text-[16px] hover:text-primary flex gap-2 items-center'
><
ArrowLeft
/>
Back to Dashboard
</
Link
>
<
h1
className=
'text-[24px] leading-[120%] font-bold lg:text-[48px]'
>
Setup an account
</
h1
>
<
h1
className=
'text-[24px] leading-[120%] font-bold lg:text-[48px]'
>
Setup an account
</
h1
>
</
div
>
</
div
>
...
@@ -134,7 +136,7 @@ export default function LoginPage() {
...
@@ -134,7 +136,7 @@ export default function LoginPage() {
</
div
>
</
div
>
<
div
className=
"action__group text-center flex flex-col gap-4 mt-8"
>
<
div
className=
"action__group text-center flex flex-col gap-4 mt-8"
>
<
button
className=
'ss-btn bg-primary-grad'
disabled=
{
!
dirty
}
>
{
isLoading
?
"Logging In"
:
"Login"
}
</
button
>
<
button
className=
'ss-btn bg-primary-grad'
disabled=
{
!
dirty
}
>
{
isLoading
?
"Logging In"
:
"Login"
}
</
button
>
<
p
className=
'text-[12px] leading-[120%] font-bold lg:text-[16px]'
>
Forgot password?
<
Link
href=
{
PATH
.
AUTH
.
RESET_PASSWORD
.
ROOT
}
>
Reset Here
</
Link
></
p
>
<
p
className=
'text-[12px] leading-[120%] font-bold lg:text-[16px]
text-secondary
'
>
Forgot password?
<
Link
href=
{
PATH
.
AUTH
.
RESET_PASSWORD
.
ROOT
}
>
Reset Here
</
Link
></
p
>
<
p
className=
'text-[12px] leading-[120%] font-bold lg:text-[16px]'
>
Don’t have an account yet?
</
p
>
<
p
className=
'text-[12px] leading-[120%] font-bold lg:text-[16px]'
>
Don’t have an account yet?
</
p
>
<
Link
href=
{
PATH
.
AUTH
.
REGISTER
.
ROOT
}
className=
'ss-btn bg-secondary-grad'
>
Setup an account
</
Link
>
<
Link
href=
{
PATH
.
AUTH
.
REGISTER
.
ROOT
}
className=
'ss-btn bg-secondary-grad'
>
Setup an account
</
Link
>
</
div
>
</
div
>
...
...
src/components/pages/auth/register/index.tsx
View file @
bca7653b
...
@@ -12,6 +12,7 @@ import { useRegisterUserMutation } from '@/services/authApi';
...
@@ -12,6 +12,7 @@ import { useRegisterUserMutation } from '@/services/authApi';
import
{
useAppDispatch
}
from
'@/hooks/hook'
;
import
{
useAppDispatch
}
from
'@/hooks/hook'
;
import
{
showToast
,
ToastVariant
}
from
'@/slice/toastSlice'
;
import
{
showToast
,
ToastVariant
}
from
'@/slice/toastSlice'
;
import
PasswordField
from
'@/components/molecules/PasswordField'
;
import
PasswordField
from
'@/components/molecules/PasswordField'
;
import
{
ArrowLeft
}
from
'@wandersonalwes/iconsax-react'
;
const
validationSchema
=
Yup
.
object
().
shape
({
const
validationSchema
=
Yup
.
object
().
shape
({
emailAddress
:
Yup
.
string
()
emailAddress
:
Yup
.
string
()
.
email
(
'Must be a valid email'
)
.
email
(
'Must be a valid email'
)
...
@@ -87,6 +88,7 @@ export default function RegisterPage() {
...
@@ -87,6 +88,7 @@ export default function RegisterPage() {
/>
/>
<
Box
className=
"auth__form__wrapper lg:w-[50%] p-8"
>
<
Box
className=
"auth__form__wrapper lg:w-[50%] p-8"
>
<
div
className=
"section__title mb-4 lg:mb-6"
>
<
div
className=
"section__title mb-4 lg:mb-6"
>
<
Link
href=
{
PATH
.
DASHBOARD
.
ROOT
}
className=
'text-[12px] leading-[120%] font-bold lg:text-[16px] hover:text-primary flex gap-2 items-center'
><
ArrowLeft
/>
Back to Dashboard
</
Link
>
<
h1
className=
'text-[24px] leading-[120%] font-bold lg:text-[48px]'
>
Setup an account
</
h1
>
<
h1
className=
'text-[24px] leading-[120%] font-bold lg:text-[48px]'
>
Setup an account
</
h1
>
</
div
>
</
div
>
...
...
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