diff --git a/unlock-app/src/components/content/events-collection/settings/ManagerForm.tsx b/unlock-app/src/components/content/events-collection/settings/ManagerForm.tsx index f753c0f1c2b..cb16f3d3507 100644 --- a/unlock-app/src/components/content/events-collection/settings/ManagerForm.tsx +++ b/unlock-app/src/components/content/events-collection/settings/ManagerForm.tsx @@ -4,16 +4,11 @@ import { AddressInput, isAddressOrEns, Placeholder, + Modal, } from '@unlock-protocol/ui' import { Controller, useForm, useWatch } from 'react-hook-form' import { useAuth } from '~/contexts/AuthenticationContext' import { useEffect, useState } from 'react' -import { - Transition, - Dialog, - DialogPanel, - TransitionChild, -} from '@headlessui/react' import { onResolveName } from '~/utils/resolvers' import { EventCollection } from '@unlock-protocol/unlock-js' import { useEventCollectionManagers } from '~/hooks/useEventCollectionManagers' @@ -71,74 +66,52 @@ const RenounceModal = ({ return ( <> - - setIsOpen(false)} - open + +
-
- -
-
- - -
- img error -
-
-

- Hold Your Horses -

- - You are about to permanently renounce yourself as a - Collection manager. You will not be able to revert this - action. Please type “renounce” to confirm. - -
- -
- - -
- -
-
+
+ img error +
+
+

+ Hold Your Horses +

+ + You are about to permanently renounce yourself as a Collection + manager. You will not be able to revert this action. Please type + “renounce” to confirm. +
- -
-
+ +
+ + +
+ + + ) } diff --git a/unlock-app/src/components/interface/VerificationStatus.tsx b/unlock-app/src/components/interface/VerificationStatus.tsx index 6d531738220..18d7ebe3034 100644 --- a/unlock-app/src/components/interface/VerificationStatus.tsx +++ b/unlock-app/src/components/interface/VerificationStatus.tsx @@ -1,4 +1,4 @@ -import { Fragment, useState } from 'react' +import { useState } from 'react' import { useAuth } from '../../contexts/AuthenticationContext' import { MembershipCard, @@ -7,17 +7,11 @@ import { import { ToastHelper } from '../helpers/toast.helper' import { MembershipVerificationConfig } from '~/utils/verification' import { invalidMembership } from './verification/invalidMembership' -import { Button } from '@unlock-protocol/ui' +import { Button, Modal } from '@unlock-protocol/ui' import { isSignatureValidForAddress } from '~/utils/signatures' import { locksmith } from '~/config/locksmith' import { AxiosError } from 'axios' import { useEventTicket, useLocksmithGranterAddress } from '~/hooks/useTicket' -import { - Dialog, - DialogPanel, - Transition, - TransitionChild, -} from '@headlessui/react' import { MAX_UINT } from '~/constants' import { config as AppConfig } from '~/config/app' import { useConnectModal } from '~/hooks/useConnectModal' @@ -42,66 +36,40 @@ const WarningDialog = ({ setIsOpen, onConfirm, }: WarningDialogProps) => ( - - { - setIsOpen(false) - }} - open={isOpen} - > -
- -
-
- -
-
-
- Warning -
-
- - The current ticket has not been checked-in. Are you sure - you want to scan the next one? - - - -
-
-
-
-
+ +
+
+
+ Warning +
+
+ + The current ticket has not been checked-in. Are you sure you want to + scan the next one? + + +
- -
-
+ + + ) /** diff --git a/unlock-app/src/components/interface/locks/Settings/forms/LockManagerForm.tsx b/unlock-app/src/components/interface/locks/Settings/forms/LockManagerForm.tsx index a55a09b3f39..003bf84d6de 100644 --- a/unlock-app/src/components/interface/locks/Settings/forms/LockManagerForm.tsx +++ b/unlock-app/src/components/interface/locks/Settings/forms/LockManagerForm.tsx @@ -6,18 +6,13 @@ import { isAddressOrEns, minifyAddress, Placeholder, + Modal, } from '@unlock-protocol/ui' import { SubgraphService } from '@unlock-protocol/unlock-js' import { Controller, useForm, useWatch } from 'react-hook-form' import { ToastHelper } from '~/components/helpers/toast.helper' import { useAuth } from '~/contexts/AuthenticationContext' import { useEffect, useState } from 'react' -import { - Transition, - Dialog, - DialogPanel, - TransitionChild, -} from '@headlessui/react' import { onResolveName } from '~/utils/resolvers' import useEns from '~/hooks/useEns' import { useAddLockManager } from '~/hooks/useAddLockManager' @@ -71,78 +66,47 @@ const RenounceModal = ({ } return ( - <> - - { - setIsOpen(false) - }} - open - > -
- +
+
+ img error +
+
+

+ Hold Your Horses +

+ + You are about to permanently renounce yourself as Lock manager. You + will not be able to revert this action. Please type + “renounce” to confirm. + +
+ +
+ - -
-
- -
- - -
-
- + Cancel + + + + + ) } diff --git a/unlock-app/src/components/interface/verification/Scanner.tsx b/unlock-app/src/components/interface/verification/Scanner.tsx index 126124b24d3..3fa50a98bb6 100644 --- a/unlock-app/src/components/interface/verification/Scanner.tsx +++ b/unlock-app/src/components/interface/verification/Scanner.tsx @@ -1,12 +1,6 @@ 'use client' -import { Fragment, useState, useEffect, useRef } from 'react' -import { - Transition, - Dialog, - TransitionChild, - DialogPanel, -} from '@headlessui/react' +import { useState, useEffect, useRef } from 'react' import { getMembershipVerificationConfig, MembershipVerificationConfig, @@ -17,7 +11,7 @@ import { useDropzone } from 'react-dropzone' import { getURL } from '~/utils/url' import { ToastHelper } from '~/components/helpers/toast.helper' import { config as AppConfig } from '~/config/app' -import { Button } from '@unlock-protocol/ui' +import { Button, Modal } from '@unlock-protocol/ui' import { Event, PaywallConfigType } from '@unlock-protocol/core' const getVerificationConfigFromURL = async (content?: string) => { @@ -159,41 +153,21 @@ export function Scanner({ checkoutConfig, eventProp }: ScannerProps) { {membershipVerificationConfig && ( - - { - setMembershipVerificationConfig(null) - }} - open - > -
- -
-
- - setMembershipVerificationConfig(null)} - onVerified={() => setMembershipVerificationConfig(null)} - config={membershipVerificationConfig} - /> - -
-
-
-
-
+ setMembershipVerificationConfig(null)} + > +
+ setMembershipVerificationConfig(null)} + onVerified={() => setMembershipVerificationConfig(null)} + config={membershipVerificationConfig} + /> +
+
)} )