Skip to content

Commit

Permalink
Remove mint.fun button from mobile (#2405)
Browse files Browse the repository at this point in the history
* toss mint.fun

* toss
  • Loading branch information
Robinnnnn authored Apr 5, 2024
1 parent 2b4a322 commit 8a28efa
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 32 deletions.
6 changes: 0 additions & 6 deletions apps/mobile/src/components/MintLinkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { EnsembleIcon } from 'src/icons/EnsembleIcon';
import { FoundationIcon } from 'src/icons/FoundationIcon';
import { FxHashIcon } from 'src/icons/FxHashIcon';
import { HighlightIcon } from 'src/icons/HighlightIcon';
import { MintFunIcon } from 'src/icons/MintFunIcon';
import { ProhibitionIcon } from 'src/icons/ProhibitionIcon';
import { SuperRareIcon } from 'src/icons/SuperRareIcon';
import { TopRightArrowIcon } from 'src/icons/TopRightArrowIcon';
Expand Down Expand Up @@ -93,11 +92,6 @@ export function MintLinkButton({
buttonText: 'mint on zora',
icon: <ZoraIcon />,
};
} else if (mintProviderType === 'MintFun') {
return {
buttonText: 'mint on mint.fun',
icon: <MintFunIcon width={size === 'sm' ? 16 : 24} height={size === 'sm' ? 16 : 24} />,
};
} else if (mintProviderType === 'FxHash') {
return {
buttonText: 'mint on fxhash',
Expand Down
6 changes: 0 additions & 6 deletions apps/web/src/components/MintLinkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { EnsembleLogoIcon } from '~/icons/EnsembleLogoIcon';
import { FoundationLogoIcon } from '~/icons/FoundationLogoIcon';
import { FxHashLogoIcon } from '~/icons/FxHashLogoIcon';
import { HighlightLogoIcon } from '~/icons/HighlightLogoIcon';
import { MintFunLogoIcon } from '~/icons/MintFunLogoIcon';
import { ProhibitionLogoIcon } from '~/icons/ProhibitionLogoIcon';
import { SuperRareLogoIcon } from '~/icons/SuperRareLogoIcon';
import { ZoraLogoIcon } from '~/icons/ZoraLogoIcon';
Expand Down Expand Up @@ -71,11 +70,6 @@ export function MintLinkButton({
buttonText: 'mint on zora',
icon: <ZoraLogoIcon />,
};
} else if (mintProviderType === 'MintFun') {
return {
buttonText: 'mint on mint.fun',
icon: <MintFunLogoIcon />,
};
} else if (mintProviderType === 'FxHash') {
return {
buttonText: 'mint on fxhash',
Expand Down
19 changes: 0 additions & 19 deletions packages/shared/src/utils/getMintUrlWithReferrer.test.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import { getMintUrlWithReferrer } from './getMintUrlWithReferrer';

describe('getMintUrlWithReferrer', () => {
it('should append referrer to mint.fun URLs', () => {
const url = 'https://mint.fun/op/12345';
const referrer = 'referrer1';
const result = getMintUrlWithReferrer(url, referrer);
expect(result.url).toBe('https://mint.fun/op/12345?ref=referrer1');
expect(result.provider).toBe('MintFun');
});

it('should append referrer to zora.co URLs', () => {
const url = 'https://zora.co/collect/zora:0xaa8c4286883c46ffc3225500f4955f8edc0a351f/2';
const referrer = 'referrer2';
Expand Down Expand Up @@ -71,17 +63,6 @@ describe('getMintUrlWithReferrer', () => {
expect(result.provider).toBe('Foundation');
});

it('should not append referrer if mint.fun already have ref', () => {
const url =
'https://mint.fun/op/0xcA1cb17d65CeF28087Bf1f65B4D599c768F870Ac?ref=0x517AEa67196C8975dd100236689D0CA10B928F58';
const referrer = 'newReferrer';
const result = getMintUrlWithReferrer(url, referrer);
expect(result.url).toBe(
'https://mint.fun/op/0xcA1cb17d65CeF28087Bf1f65B4D599c768F870Ac?ref=0x517AEa67196C8975dd100236689D0CA10B928F58'
);
expect(result.provider).toBe('MintFun');
});

it('should not append referrer if zora.co already have referrer', () => {
const url =
'https://zora.co/collect/zora:0x7c2668BD0D3c050703CEcC956C11Bd520c26f7d4/2?referrer=0x517AEa67196C8975dd100236689D0CA10B928F58';
Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/utils/getMintUrlWithReferrer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export const MINT_LINK_CHAIN_ENABLED = new Set([
]);

const providers = [
{ regex: '^https://(www\\.)?mint.fun/?', name: 'MintFun', param: 'ref' },
{ regex: '^https://(www\\.)?zora.co/?', name: 'Zora', param: 'referrer' },
{ regex: '^https://(www\\.)?fxhash.xyz/?', name: 'FxHash' },
{
Expand Down

0 comments on commit 8a28efa

Please sign in to comment.