Skip to content

Commit b0e3fc6

Browse files
committed
refactor(app): optimize
1 parent 0e1f712 commit b0e3fc6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/app/oauth/page.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,8 @@ export default function Page() {
9393
}
9494
}, [status]); // eslint-disable-line react-hooks/exhaustive-deps
9595

96-
const handleVerify = token => {
97-
if (!token) {
98-
return;
99-
}
100-
101-
setDisabled(false);
96+
const handleVerify = verified => {
97+
setDisabled(!verified);
10298
};
10399

104100
return (
@@ -108,7 +104,7 @@ export default function Page() {
108104
<div className="absolute top-1/2 left-0 w-full border-b-2 border-dashed border-[#d1d9e0]" />
109105
<div className="flex items-center justify-between py-9">
110106
<div className="relative bg-white rounded-full size-[60px] md:size-[100px]">
111-
<Image src={clientInfo?.icon} alt="Logo" className="!size-full" fill />
107+
<Image src={clientInfo?.icon} alt="Logo" fill />
112108
</div>
113109
<div className="flex items-center gap-2 relative">
114110
<SvgIcon name="circle-check" size={20} />

0 commit comments

Comments
 (0)