-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: input text rendering * chore: changesets
- Loading branch information
Showing
4 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"frog": patch | ||
--- | ||
|
||
Fixes an issue with rendering of `TextInput` intent and reverts changes from https://github.com/wevm/frog/commit/90544316bf2d752bf324bc43662cd31b3b2c78db and https://github.com/wevm/frog/commit/6114139cb7b56ca5bc95ae2af7722f9ba0ec7f80 as those are no longer needed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import type { JSX } from 'hono/jsx/jsx-runtime' | ||
import type { HtmlEscapedString } from 'hono/utils/html' | ||
|
||
export type TextInputProps = { | ||
placeholder?: string | undefined | ||
} | ||
|
||
TextInput.__type = 'text-input' | ||
export function TextInput({ placeholder }: TextInputProps): JSX.Element { | ||
return <meta property="fc:frame:input:text" content={placeholder} /> | ||
return [ | ||
<meta property="fc:frame:input:text" content={placeholder} />, | ||
] as unknown as HtmlEscapedString | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters