Skip to content

Commit

Permalink
Merge branch 'master' into base-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
intls authored Feb 10, 2025
2 parents 5ab4b10 + d92789a commit edbdcd2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { PlusIcon } from '@heroicons/react/24/solid';
import * as Accordion from '@radix-ui/react-accordion';
import { useAnalytics } from 'apps/web/contexts/Analytics';
import { useUsernameProfile } from 'apps/web/src/components/Basenames/UsernameProfileContext';
import { useFrameContext } from 'apps/web/src/components/Basenames/UsernameProfileSectionFrames/Context';
import Frame from 'apps/web/src/components/Basenames/UsernameProfileSectionFrames/Frame';
import { SuggestionCard } from 'apps/web/src/components/Basenames/UsernameProfileSectionFrames/SuggestionCard';
Expand All @@ -24,7 +23,6 @@ import mintMe from './ui/mint-me.svg';
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';

export default function FrameBuilder() {
const params = useParams();
Expand All @@ -43,8 +41,6 @@ export default function FrameBuilder() {
scrollTo({ top: 0, behavior: 'smooth' });
}, []);

const { profileAddress } = useUsernameProfile();

const emptyFrameUrl = !debouncedNewFrameUrl;
const isValidFrameUrl = isValidUrl(debouncedNewFrameUrl);
const { logEventWithContext } = useAnalytics();
Expand Down Expand Up @@ -129,18 +125,6 @@ export default function FrameBuilder() {
}
}, [basename, handleNextStep, logEventWithContext]);

const handleBuildTopClick = useCallback(() => {
if (profileAddress) {
logEventWithContext('basename_profile_frame_preview', ActionType.click, {
context: 'social-dex',
});
setNewFrameUrl(`https://build.top/nominate/${profileAddress}`);
handleNextStep();
} else {
setNewFrameUrl('');
}
}, [handleNextStep, logEventWithContext, profileAddress]);

const handleAddFrameClick = useCallback(() => {
if (!newFrameUrl) return;
addFrame(newFrameUrl)
Expand Down Expand Up @@ -188,28 +172,6 @@ export default function FrameBuilder() {
</Button>
</div>
</SuggestionCard>
<SuggestionCard
handleTriggerClick={() =>
logEventWithContext('basename_profile_frame_nominate_opened', ActionType.click)
}
imgData={starActive as StaticImageData}
title="Nominate me"
description="Get nominated with build.top"
>
<div className="flex flex-row items-center justify-between gap-4">
<p className="text-sm text-palette-foreground">
Let others nominate you as a builder using your Basename address.
</p>
<Button
rounded
variant={ButtonVariants.Black}
size={ButtonSizes.Tiny}
onClick={handleBuildTopClick}
>
Show preview
</Button>
</div>
</SuggestionCard>
<SuggestionCard
handleTriggerClick={() =>
logEventWithContext('basename_profile_frame_buy_opened', ActionType.click)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const DISCOUNT_ITEMS: DiscountItem[] = [
alt: 'icon of talent protocol',
label: 'Builder score 50+',
tooltipContent:
'Available for anyone with an onchain builder score 50+. Go to passport.talentprotocol.com to mint yours.',
'Available for anyone with a 50+ Builder Score minted onchain. Go to app.talentprotocol.com to get yours.',
},
{
discount: Discount.SUMMER_PASS_LVL_3,
Expand Down

0 comments on commit edbdcd2

Please sign in to comment.