Skip to content

Commit 559fa03

Browse files
fix: launch button type
1 parent 8d4d7ea commit 559fa03

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/render/src/ui/frame.base.tsx

+7-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,12 @@ export type BaseFrameUIProps<TStylingProps extends Record<string, unknown>> = {
9494
function defaultMessageHandler(): void {}
9595

9696
// eslint-disable-next-line @typescript-eslint/no-empty-function -- this is noop
97-
function defaultOnAppLaunchButtonPress(): void {}
97+
function defaultOnAppLaunchButtonPress(): void {
98+
// eslint-disable-next-line no-console -- provide at least some feedback to the user
99+
console.info(
100+
"@frames.js/render/ui/FrameUI.onAppLaunchButtonPress is not implemented"
101+
);
102+
}
98103

99104
function defaultErrorLogger(error: Error): void {
100105
// eslint-disable-next-line no-console -- provide at least some feedback to the user
@@ -327,7 +332,7 @@ export function BaseFrameUI<TStylingProps extends Record<string, unknown>>({
327332
{
328333
frameState: frameUiState,
329334
frameButton: {
330-
action: "launch",
335+
action: "launch_frame",
331336
label: frameUiState.frame.button.title,
332337
},
333338
index: 0,

packages/render/src/ui/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export type FrameImageProps = FrameUIStateProps & {
298298
);
299299

300300
export type FrameLaunchButton = {
301-
action: "launch";
301+
action: "launch_frame";
302302
label: string;
303303
};
304304

0 commit comments

Comments
 (0)