@@ -24,7 +24,6 @@ import { validateTwitterUsername } from "lib/utils/validate-twitter-username";
24
24
import { Dialog , DialogContent , DialogHeader , DialogTitle } from "components/molecules/Dialog/dialog" ;
25
25
import { LanguageSwitch } from "components/shared/LanguageSwitch/language-switch" ;
26
26
import useSupabaseAuth from "lib/hooks/useSupabaseAuth" ;
27
- import DeveloperPackForm from "./developer-pack-form" ;
28
27
29
28
interface UserSettingsPageProps {
30
29
user : User | null ;
@@ -435,59 +434,38 @@ const UserSettingsPage = ({ user }: UserSettingsPageProps) => {
435
434
</ Button >
436
435
</ div >
437
436
{ userInfo && (
438
- < >
439
- < div >
440
- { ! coupon ? (
441
- < div className = "flex flex-col order-first gap-6 md:order-last" >
442
- < div className = "flex flex-col gap-3" >
443
- < label className = "text-2xl font-normal" > Developer Pack </ label >
444
- < div className = "w-full sm:max-w-80" >
445
- < Text > Verify your developer pack eligibilty to get an upgrade! </ Text >
446
- </ div >
447
- </ div >
448
- < DeveloperPackForm
449
- providerToken = { providerToken }
450
- refreshUser = { ( ) => {
451
- mutate ( ) ;
452
- setCoupon ( "verified" ) ;
453
- } }
454
- />
455
- </ div >
456
- ) : null }
437
+ < form
438
+ name = "delete-account"
439
+ action = "/api/delete-account"
440
+ method = "POST"
441
+ className = "flex flex-col order-first gap-6 md:order-last p-6 rounded-2xl bg-light-slate-4"
442
+ ref = { deleteFormRef }
443
+ onSubmit = { ( e ) => {
444
+ setIsModalOpen ( true ) ;
445
+ e . preventDefault ( ) ;
446
+ } }
447
+ >
448
+ < div className = "flex flex-col gap-3" >
449
+ < label className = "text-2xl font-normal" > Delete Account </ label >
450
+ < div className = "w-full md:w-96" >
451
+ < Text >
452
+ Please note that account deletion is irreversible. Proceed only if you are certain about this
453
+ action.
454
+ </ Text >
455
+ </ div >
457
456
</ div >
458
- < form
459
- name = "delete-account"
460
- action = "/api/delete-account"
461
- method = "POST"
462
- className = "flex flex-col order-first gap-6 md:order-last p-6 rounded-2xl bg-light-slate-4"
463
- ref = { deleteFormRef }
464
- onSubmit = { ( e ) => {
465
- setIsModalOpen ( true ) ;
466
- e . preventDefault ( ) ;
457
+ < Button type = "submit" rel = "noopener noreferrer" target = "_blank" variant = "destructive" className = "w-max" >
458
+ Delete Account
459
+ </ Button >
460
+ < DeleteAccountModal
461
+ open = { isModalOpen }
462
+ setOpen = { setIsModalOpen }
463
+ onDelete = { ( ) => {
464
+ setIsModalOpen ( false ) ;
465
+ deleteFormRef . current ?. submit ( ) ;
467
466
} }
468
- >
469
- < div className = "flex flex-col gap-3" >
470
- < label className = "text-2xl font-normal" > Delete Account</ label >
471
- < div className = "w-full md:w-96" >
472
- < Text >
473
- Please note that account deletion is irreversible. Proceed only if you are certain about this
474
- action.
475
- </ Text >
476
- </ div >
477
- </ div >
478
- < Button type = "submit" rel = "noopener noreferrer" target = "_blank" variant = "destructive" className = "w-max" >
479
- Delete Account
480
- </ Button >
481
- < DeleteAccountModal
482
- open = { isModalOpen }
483
- setOpen = { setIsModalOpen }
484
- onDelete = { ( ) => {
485
- setIsModalOpen ( false ) ;
486
- deleteFormRef . current ?. submit ( ) ;
487
- } }
488
- />
489
- </ form >
490
- </ >
467
+ />
468
+ </ form >
491
469
) }
492
470
</ div >
493
471
</ div >
0 commit comments