Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Commit f4bd209

Browse files
committed
re-implement the x verified locked overlay
1 parent 9a2a3ef commit f4bd209

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

src/components/proposals/ProposalSubmission.tsx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ import AuthButton from "@/components/home/AuthButton";
7373
const BLOCKED_USERNAMES = [
7474
"blockeduser1",
7575
"blockeduser2",
76+
"ablino",
7677
// Add more usernames here as needed
7778
];
7879

@@ -1273,6 +1274,36 @@ export function ProposalSubmission({
12731274
)}
12741275

12751276
{/* X Verification Lock Overlay */}
1277+
{hasAccessToken &&
1278+
!needsXLink &&
1279+
!isXLoading &&
1280+
verificationStatus.status === "not_verified" && (
1281+
<div className="absolute inset-0 bg-zinc-900 rounded-sm flex flex-col items-center justify-center z-10">
1282+
<div className="text-center space-y-4 max-w-md mx-auto px-6">
1283+
<div className="w-16 h-16 rounded-sm bg-red-900/20 border border-red-800/30 flex items-center justify-center mx-auto">
1284+
<Lock className="w-8 h-8 text-red-400" />
1285+
</div>
1286+
<div>
1287+
<h3 className="text-xl font-bold text-red-300 mb-2 flex justify-center">
1288+
<svg
1289+
className="w-5 h-5 flex-shrink-0 mt-1"
1290+
viewBox="0 0 22 22"
1291+
fill="none"
1292+
xmlns="http://www.w3.org/2000/svg"
1293+
>
1294+
<path
1295+
d="M20.396 11c-.018-.646-.215-1.275-.57-1.816-.354-.54-.852-.972-1.438-1.246.223-.607.27-1.264.14-1.897-.131-.634-.437-1.218-.882-1.687-.47-.445-1.053-.75-1.687-.882-.633-.13-1.29-.083-1.897.14-.273-.587-.704-1.086-1.245-1.44S11.647 1.62 11 1.604c-.646.017-1.273.213-1.813.568s-.969.854-1.24 1.44c-.608-.223-1.267-.272-1.902-.14-.635.13-1.22.436-1.69.882-.445.47-.749 1.055-.878 1.688-.13.633-.08 1.29.144 1.896-.587.274-1.087.705-1.443 1.245-.356.54-.555 1.17-.574 1.817.02.647.218 1.276.574 1.817.356.54.856.972 1.443 1.245-.224.606-.274 1.263-.144 1.896.13.634.433 1.218.877 1.688.47.443 1.054.747 1.687.878.633.132 1.29.084 1.897-.136.274.586.705 1.084 1.246 1.439.54.354 1.17.551 1.816.569.647-.016 1.276-.213 1.817-.567s.972-.854 1.245-1.44c.604.239 1.266.296 1.903.164.636-.132 1.22-.447 1.68-.907.46-.46.776-1.044.908-1.681s.075-1.299-.165-1.903c.586-.274 1.084-.705 1.439-1.246.354-.54.551-1.17.569-1.816zM9.662 14.85l-3.429-3.428 1.293-1.302 2.072 2.072 4.4-4.794 1.347 1.246z"
1296+
fill="#1d9bf0"
1297+
/>
1298+
</svg>
1299+
Your X account{" "}
1300+
{xProfile?.username ? `@${xProfile.username} ` : ""}must
1301+
have a blue check to submit contribution
1302+
</h3>
1303+
</div>
1304+
</div>
1305+
</div>
1306+
)}
12761307

12771308
{/* X Verification Pending Lock Overlay */}
12781309
{hasAccessToken &&

0 commit comments

Comments
 (0)