Revert "Merge pull request #18 from neynarxyz/veganbeef/fix-siwn"

This reverts commit 78626c2dc7, reversing
changes made to b1fdfc19a9.
This commit is contained in:
Shreyaschorge
2025-07-16 17:20:36 +05:30
parent 181c364de4
commit 349cdea489
3 changed files with 188 additions and 221 deletions

View File

@@ -5,19 +5,10 @@ import { type Haptics } from '@farcaster/miniapp-sdk';
import { useMiniApp } from '@neynar/react';
import { APP_URL } from '~/lib/constants';
import { Button } from '../Button';
import { NeynarAuthButton } from '../NeynarAuthButton/index';
import { ShareButton } from '../Share';
import { SignIn } from '../wallet/SignIn';
// Optional import for NeynarAuthButton - may not exist in all templates
let NeynarAuthButton: React.ComponentType | null = null;
try {
const module = require('../NeynarAuthButton/index');
NeynarAuthButton = module.NeynarAuthButton;
} catch (error) {
// Component doesn't exist, that's okay
console.log('NeynarAuthButton not available in this template');
}
/**
* ActionsTab component handles mini app actions like sharing, notifications, and haptic feedback.
*
@@ -149,7 +140,7 @@ export function ActionsTab() {
<SignIn />
{/* Neynar Authentication */}
{NeynarAuthButton && <NeynarAuthButton />}
<NeynarAuthButton />
{/* Mini app actions */}
<Button