mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-06 09:22:32 -05:00
fix-deploy-and-manifest-issue
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user