Skip to content

Commit 35f59cf

Browse files
authored
Merge pull request #12125 from hicommonwealth/dill.revert-turnstile
remove turnstile from quick create token
2 parents e6bbae4 + 3512991 commit 35f59cf

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

packages/commonwealth/client/scripts/views/pages/LaunchToken/QuickTokenLaunchForm/QuickTokenLaunchForm.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { CWButton } from 'views/components/component_kit/new_designs/CWButton';
2323
import CWCircleMultiplySpinner from 'views/components/component_kit/new_designs/CWCircleMultiplySpinner';
2424
import { CWTooltip } from 'views/components/component_kit/new_designs/CWTooltip';
2525
import TokenLaunchButton from 'views/components/sidebar/TokenLaunchButton';
26-
import { useTurnstile } from 'views/components/useTurnstile';
2726
import { openConfirmation } from 'views/modals/confirmation_modal';
2827
import useCreateTokenCommunity from '../useCreateTokenCommunity';
2928
import './QuickTokenLaunchForm.scss';
@@ -52,15 +51,6 @@ export const QuickTokenLaunchForm = ({
5251
}: QuickTokenLaunchFormProps) => {
5352
const tokenizedThreadsEnabled = useFlag('tokenizedThreads');
5453

55-
const {
56-
turnstileToken,
57-
isTurnstileEnabled,
58-
TurnstileWidget,
59-
resetTurnstile,
60-
} = useTurnstile({
61-
action: 'create-community',
62-
});
63-
6454
const timeoutRef = useRef<NodeJS.Timeout | undefined>(undefined);
6555
const {
6656
generateIdea,
@@ -216,7 +206,6 @@ export const QuickTokenLaunchForm = ({
216206
socialLinks: [],
217207
chainNodeId: baseNode.id,
218208
tokenizeCommunity: tokenizedThreadsEnabled ? true : false,
219-
turnstileToken: turnstileToken || undefined,
220209
});
221210

222211
let response;
@@ -305,9 +294,6 @@ export const QuickTokenLaunchForm = ({
305294
setCreatedCommunityId(communityId);
306295
onCommunityCreated(communityId);
307296
} catch (e) {
308-
if (isTurnstileEnabled) {
309-
resetTurnstile();
310-
}
311297
console.error(`Error creating token: `, e, e.name);
312298

313299
if (e?.name === 'TransactionBlockTimeoutError') {
@@ -416,8 +402,6 @@ export const QuickTokenLaunchForm = ({
416402
</CWText>
417403
)}
418404

419-
{isTurnstileEnabled && <TurnstileWidget />}
420-
421405
{isCreatingQuickToken && <CWCircleMultiplySpinner />}
422406

423407
{createdCommunityId ? (

0 commit comments

Comments
 (0)