mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-14 21:32:32 -05:00
refactor: update frame to mini app and fix dark mode
This commit is contained in:
@@ -31,7 +31,7 @@ export async function getNeynarUser(fid: number): Promise<User | null> {
|
||||
}
|
||||
}
|
||||
|
||||
type SendFrameNotificationResult =
|
||||
type SendMiniAppNotificationResult =
|
||||
| {
|
||||
state: "error";
|
||||
error: unknown;
|
||||
@@ -40,7 +40,7 @@ type SendFrameNotificationResult =
|
||||
| { state: "rate_limit" }
|
||||
| { state: "success" };
|
||||
|
||||
export async function sendNeynarFrameNotification({
|
||||
export async function sendNeynarMiniAppNotification({
|
||||
fid,
|
||||
title,
|
||||
body,
|
||||
@@ -48,7 +48,7 @@ export async function sendNeynarFrameNotification({
|
||||
fid: number;
|
||||
title: string;
|
||||
body: string;
|
||||
}): Promise<SendFrameNotificationResult> {
|
||||
}): Promise<SendMiniAppNotificationResult> {
|
||||
try {
|
||||
const client = getNeynarClient();
|
||||
const targetFids = [fid];
|
||||
|
||||
Reference in New Issue
Block a user