From 324734572d3273d3da17e149ef2907631fed6f17 Mon Sep 17 00:00:00 2001 From: Jordan Frankfurt Date: Thu, 10 Oct 2024 15:31:29 -0500 Subject: [PATCH] rm frame builder section (#1057) --- .../FrameBuilder.tsx | 48 ------------------- .../ConfigureFramesPageContent/ui/swap.svg | 8 ---- 2 files changed, 56 deletions(-) delete mode 100644 apps/web/src/components/Basenames/ConfigureFramesPageContent/ui/swap.svg diff --git a/apps/web/src/components/Basenames/ConfigureFramesPageContent/FrameBuilder.tsx b/apps/web/src/components/Basenames/ConfigureFramesPageContent/FrameBuilder.tsx index 49f93d3daf..4fb176a005 100644 --- a/apps/web/src/components/Basenames/ConfigureFramesPageContent/FrameBuilder.tsx +++ b/apps/web/src/components/Basenames/ConfigureFramesPageContent/FrameBuilder.tsx @@ -25,7 +25,6 @@ import nftProduct from './ui/nftProduct.svg'; import previewBackground from './ui/preview-background.svg'; import emptyPreviewFrame from './ui/preview-frame.svg'; import starActive from './ui/starActive.svg'; -import swap from './ui/swap.svg'; export default function FrameBuilder() { const params = useParams(); @@ -46,10 +45,6 @@ export default function FrameBuilder() { const { profileAddress } = useUsernameProfile(); - const [swapTokenSymbol, setSwapTokenSymbol] = useState(''); - const handleSwapTokenSymbolChange = useCallback((e: ChangeEvent) => { - setSwapTokenSymbol(e.target.value); - }, []); const emptyFrameUrl = !debouncedNewFrameUrl; const isValidFrameUrl = isValidUrl(debouncedNewFrameUrl); const { logEventWithContext } = useAnalytics(); @@ -134,18 +129,6 @@ export default function FrameBuilder() { } }, [basename, handleNextStep, logEventWithContext]); - const handleSwapPreviewClick = useCallback(() => { - if (swapTokenSymbol) { - logEventWithContext('basename_profile_frame_preview', ActionType.click, { - context: 'social-dex', - }); - setNewFrameUrl(`https://social-dex-frontend.vercel.app/api/buy/ticker/${swapTokenSymbol}`); - handleNextStep(); - } else { - setNewFrameUrl(''); - } - }, [swapTokenSymbol, handleNextStep, logEventWithContext]); - const handleBuildTopClick = useCallback(() => { if (profileAddress) { logEventWithContext('basename_profile_frame_preview', ActionType.click, { @@ -351,37 +334,6 @@ export default function FrameBuilder() { Show Preview - - logEventWithContext('basename_profile_frame_swap_opened', ActionType.click) - } - imgData={swap as StaticImageData} - title="Swap with me" - description="Buy my tokens" - > -

- Enter the token symbol of the token you want others to buy from your profile -

-
- - -
-
logEventWithContext('basename_profile_frame_rsvp_opened', ActionType.click) diff --git a/apps/web/src/components/Basenames/ConfigureFramesPageContent/ui/swap.svg b/apps/web/src/components/Basenames/ConfigureFramesPageContent/ui/swap.svg deleted file mode 100644 index 8a89838de5..0000000000 --- a/apps/web/src/components/Basenames/ConfigureFramesPageContent/ui/swap.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file