fix-deploy-and-manifest-issue

This commit is contained in:
Shreyaschorge
2025-07-18 22:55:10 +05:30
parent d9c74f163b
commit bade04b785
8 changed files with 92 additions and 57 deletions

View File

@@ -1,7 +1,7 @@
'use client';
import dynamic from 'next/dynamic';
import { useCallback, useState, type ComponentType } from 'react';
import { useCallback, useState } from 'react';
import { useMiniApp } from '@neynar/react';
import { ShareButton } from '../Share';
import { Button } from '../Button';
@@ -14,10 +14,9 @@ const NeynarAuthButton = dynamic(
() => {
return Promise.resolve().then(() => {
try {
// @ts-ignore - NeynarAuthButton may not exist in all template variants
const module = eval('require("../NeynarAuthButton/index")');
return module.default || module.NeynarAuthButton;
} catch (error) {
const authModule = eval('require("../NeynarAuthButton/index")');
return authModule.default || authModule.NeynarAuthButton;
} catch (_error) {
// Return null component when module doesn't exist
return () => null;
}
@@ -26,7 +25,6 @@ const NeynarAuthButton = dynamic(
{ ssr: false }
);
/**
* ActionsTab component handles mini app actions like sharing, notifications, and haptic feedback.
*