Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finwise-miniapp-fe
Project
Project
Details
Activity
Releases
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
ThinhNC
finwise-miniapp-fe
Commits
3c4a1811
Commit
3c4a1811
authored
Sep 23, 2026
by
ThinhNC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(handover): remove redundant email banner in Step 3
parent
513e88f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
index.tsx
src/pages/account-handover/index.tsx
+0
-20
No files found.
src/pages/account-handover/index.tsx
View file @
3c4a1811
...
@@ -24,7 +24,6 @@ import {
...
@@ -24,7 +24,6 @@ import {
TransferIcon
,
TransferIcon
,
BudgetIcon
,
BudgetIcon
,
SavingGoalIcon
,
SavingGoalIcon
,
MailIcon
,
}
from
"@/components/ui/icons"
;
}
from
"@/components/ui/icons"
;
import
{
useAuthStore
}
from
"@/stores/auth-store"
;
import
{
useAuthStore
}
from
"@/stores/auth-store"
;
import
{
handoverService
}
from
"@/services/handover.service"
;
import
{
handoverService
}
from
"@/services/handover.service"
;
...
@@ -58,7 +57,6 @@ export const AccountHandoverPage: React.FC = () => {
...
@@ -58,7 +57,6 @@ export const AccountHandoverPage: React.FC = () => {
const
[
targetUserName
,
setTargetUserName
]
=
useState
<
string
>
(
""
);
const
[
targetUserName
,
setTargetUserName
]
=
useState
<
string
>
(
""
);
const
[
otpPrompt
,
setOtpPrompt
]
=
useState
<
string
>
(
""
);
const
[
otpPrompt
,
setOtpPrompt
]
=
useState
<
string
>
(
""
);
const
[
otpDevCode
,
setOtpDevCode
]
=
useState
<
string
>
(
""
);
const
[
otpDevCode
,
setOtpDevCode
]
=
useState
<
string
>
(
""
);
const
[
maskedEmail
,
setMaskedEmail
]
=
useState
<
string
>
(
""
);
const
[
otpInput
,
setOtpInput
]
=
useState
<
string
>
(
""
);
const
[
otpInput
,
setOtpInput
]
=
useState
<
string
>
(
""
);
const
[
senderTimeLeft
,
setSenderTimeLeft
]
=
useState
<
number
>
(
900
);
const
[
senderTimeLeft
,
setSenderTimeLeft
]
=
useState
<
number
>
(
900
);
const
[
isInitiating
,
setIsInitiating
]
=
useState
<
boolean
>
(
false
);
const
[
isInitiating
,
setIsInitiating
]
=
useState
<
boolean
>
(
false
);
...
@@ -164,7 +162,6 @@ export const AccountHandoverPage: React.FC = () => {
...
@@ -164,7 +162,6 @@ export const AccountHandoverPage: React.FC = () => {
if
(
statusRes
.
targetUserName
)
setTargetUserName
(
statusRes
.
targetUserName
);
if
(
statusRes
.
targetUserName
)
setTargetUserName
(
statusRes
.
targetUserName
);
if
(
statusRes
.
otpPrompt
)
setOtpPrompt
(
statusRes
.
otpPrompt
);
if
(
statusRes
.
otpPrompt
)
setOtpPrompt
(
statusRes
.
otpPrompt
);
if
(
statusRes
.
otpCodeDev
)
setOtpDevCode
(
statusRes
.
otpCodeDev
);
if
(
statusRes
.
otpCodeDev
)
setOtpDevCode
(
statusRes
.
otpCodeDev
);
if
(
statusRes
.
sourceUserEmailMasked
)
setMaskedEmail
(
statusRes
.
sourceUserEmailMasked
);
}
else
if
(
statusRes
.
status
===
"EXPIRED"
)
{
}
else
if
(
statusRes
.
status
===
"EXPIRED"
)
{
setSenderStatus
(
"EXPIRED"
);
setSenderStatus
(
"EXPIRED"
);
}
}
...
@@ -225,7 +222,6 @@ export const AccountHandoverPage: React.FC = () => {
...
@@ -225,7 +222,6 @@ export const AccountHandoverPage: React.FC = () => {
setSenderStatus
(
"IDLE"
);
setSenderStatus
(
"IDLE"
);
setInitiateData
(
null
);
setInitiateData
(
null
);
setOtpInput
(
""
);
setOtpInput
(
""
);
setMaskedEmail
(
""
);
openSnackbar
({
openSnackbar
({
type
:
"info"
,
type
:
"info"
,
text
:
t
(
"handover.cancelled"
)
||
"Đã hủy phiên chuyển giao"
,
text
:
t
(
"handover.cancelled"
)
||
"Đã hủy phiên chuyển giao"
,
...
@@ -627,22 +623,6 @@ export const AccountHandoverPage: React.FC = () => {
...
@@ -627,22 +623,6 @@ export const AccountHandoverPage: React.FC = () => {
</
div
>
</
div
>
</
div
>
</
div
>
{
/* Email Sent Banner (Production / Real Flow) */
}
{
maskedEmail
&&
(
<
div
className=
"p-3.5 rounded-clay-sm bg-clay-income/10 border border-clay-income/25 flex items-start gap-2.5"
>
<
MailIcon
size=
{
18
}
className=
"text-clay-income-dark shrink-0 mt-0.5"
/>
<
div
className=
"text-xs text-clay-text leading-relaxed"
>
<
span
className=
"font-bold text-clay-income-dark block"
>
{
t
(
"handover.otpEmailSentTitle"
)
||
"Đã gửi mã OTP qua Email"
}
</
span
>
<
span
>
{
t
(
"handover.otpEmailSentDesc"
)
||
"Kiểm tra hộp thư đến (hoặc hòm thư Rác/Spam) của:"
}{
" "
}
<
strong
className=
"text-clay-primary font-bold"
>
{
maskedEmail
}
</
strong
>
</
span
>
</
div
>
</
div
>
)
}
{
/* Sandbox / Dev OTP Code Notice (if present) */
}
{
/* Sandbox / Dev OTP Code Notice (if present) */
}
{
otpDevCode
&&
(
{
otpDevCode
&&
(
<
div
className=
"p-2.5 rounded-clay-sm bg-clay-income/15 border border-clay-income/30 text-center"
>
<
div
className=
"p-2.5 rounded-clay-sm bg-clay-income/15 border border-clay-income/30 text-center"
>
...
...
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