Skip to content

Commit 34b465a

Browse files
committed
fix: urgent providers fix
1 parent 005e3f7 commit 34b465a

File tree

4 files changed

+14
-120
lines changed

4 files changed

+14
-120
lines changed

apps/frontend/src/components/launches/web3/providers/nostr.provider.tsx

Lines changed: 0 additions & 58 deletions
This file was deleted.

apps/frontend/src/components/launches/web3/providers/telegram.provider.tsx

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import '@neynar/react/dist/style.css';
44
import React, { FC, useCallback, useEffect, useRef, useState } from 'react';
55
import { Web3ProviderInterface } from '@gitroom/frontend/components/launches/web3/web3.provider.interface';
6-
import { TopTitle } from '@gitroom/frontend/components/launches/helpers/top.title.component';
7-
import { useModals } from '@gitroom/frontend/components/layout/new-modal';
86
import { useFetch } from '@gitroom/helpers/utils/custom.fetch';
97
import { timer } from '@gitroom/helpers/utils/timer';
108
import { makeId } from '@gitroom/nestjs-libraries/services/make.is';
@@ -17,7 +15,6 @@ import { useT } from '@gitroom/react/translation/get.transation.service.client';
1715
export const TelegramProvider: FC<Web3ProviderInterface> = (props) => {
1816
const { onComplete, nonce } = props;
1917
const { telegramBotName } = useVariables();
20-
const modal = useModals();
2118
const fetch = useFetch();
2219
const word = useRef(makeId(4));
2320
const stop = useRef(false);
@@ -66,32 +63,10 @@ export const TelegramProvider: FC<Web3ProviderInterface> = (props) => {
6663
};
6764
}, []);
6865
return (
69-
<div className="rounded-[4px] border border-customColor6 bg-sixth px-[16px] pb-[16px] relative w-[700px]">
70-
<TopTitle title={`Add Telegram`} />
71-
<button
72-
className="outline-none absolute end-[20px] top-[20px] mantine-UnstyledButton-root mantine-ActionIcon-root hover:bg-tableBorder cursor-pointer mantine-Modal-close mantine-1dcetaa"
73-
type="button"
74-
onClick={() => modal.closeAll()}
75-
>
76-
<svg
77-
viewBox="0 0 15 15"
78-
fill="none"
79-
xmlns="http://www.w3.org/2000/svg"
80-
width="16"
81-
height="16"
82-
>
83-
<path
84-
d="M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z"
85-
fill="currentColor"
86-
fillRule="evenodd"
87-
clipRule="evenodd"
88-
></path>
89-
</svg>
90-
</button>
66+
<>
9167
<div className="justify-center items-center flex flex-col pt-[16px]">
9268
<div>
93-
{t('please_add', 'Please add')}{' '}
94-
<strong>@{telegramBotName}</strong>{' '}
69+
{t('please_add', 'Please add')} <strong>@{telegramBotName}</strong>{' '}
9570
{t(
9671
'to_your_telegram_group_channel_and_click_here',
9772
'to your\n telegram group / channel and click here:'
@@ -145,6 +120,6 @@ export const TelegramProvider: FC<Web3ProviderInterface> = (props) => {
145120
</div>
146121
)}
147122
</div>
148-
</div>
123+
</>
149124
);
150125
};

apps/frontend/src/components/launches/web3/providers/wrapcaster.provider.tsx

Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,16 @@ export const WrapcasterProvider: FC<Web3ProviderInterface> = (props) => {
2727
[state]
2828
);
2929
return (
30-
<div className="rounded-[4px] border border-customColor6 bg-sixth px-[16px] pb-[16px] relative w-full">
31-
<TopTitle title={`Add Wrapcast`} />
32-
<button
33-
className="outline-none absolute end-[20px] top-[20px] mantine-UnstyledButton-root mantine-ActionIcon-root hover:bg-tableBorder cursor-pointer mantine-Modal-close mantine-1dcetaa"
34-
type="button"
35-
onClick={() => modal.closeAll()}
36-
>
37-
<svg
38-
viewBox="0 0 15 15"
39-
fill="none"
40-
xmlns="http://www.w3.org/2000/svg"
41-
width="16"
42-
height="16"
43-
>
44-
<path
45-
d="M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z"
46-
fill="currentColor"
47-
fillRule="evenodd"
48-
clipRule="evenodd"
49-
></path>
50-
</svg>
51-
</button>
52-
<div className="justify-center items-center flex">
53-
{hide ? (
54-
<div className="justify-center items-center flex -mt-[90px]">
55-
<LoadingComponent width={100} height={100} />
56-
</div>
57-
) : (
58-
<div className="justify-center items-center py-[20px] flex-col w-[500px]">
59-
<ButtonCaster login={auth} />
60-
</div>
61-
)}
62-
</div>
30+
<div className="justify-center items-center flex">
31+
{hide ? (
32+
<div className="justify-center items-center flex -mt-[90px]">
33+
<LoadingComponent width={100} height={100} />
34+
</div>
35+
) : (
36+
<div className="justify-center items-center py-[20px] flex-col w-[500px]">
37+
<ButtonCaster login={auth} />
38+
</div>
39+
)}
6340
</div>
6441
);
6542
};

libraries/nestjs-libraries/src/integrations/social/farcaster.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class FarcasterProvider
2525
implements SocialProvider
2626
{
2727
identifier = 'wrapcast';
28-
name = 'Warpcast';
28+
name = 'Farcaster';
2929
isBetweenSteps = false;
3030
isWeb3 = true;
3131
scopes = [] as string[];

0 commit comments

Comments
 (0)