-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add error page for LLM (#8762)
feat: add error page fix: use i18n chore: logs chore: changeset
- Loading branch information
1 parent
8d2cf10
commit 1d47a95
Showing
4 changed files
with
33 additions
and
8 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 @@ | ||
--- | ||
"live-mobile": minor | ||
--- | ||
|
||
LLM add error page |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import React from "react"; | ||
import { LiveAppManifest } from "@ledgerhq/live-common/platform/types"; | ||
import React from "react"; | ||
import TabBarSafeAreaView from "~/components/TabBar/TabBarSafeAreaView"; | ||
import { Web3AppWebview } from "~/components/Web3AppWebview"; | ||
import { WebviewState } from "~/components/Web3AppWebview/types"; | ||
|
||
type Props = { | ||
manifest: LiveAppManifest; | ||
setWebviewState: React.Dispatch<React.SetStateAction<WebviewState>>; | ||
}; | ||
|
||
export function WebView({ manifest }: Props) { | ||
export function WebView({ manifest, setWebviewState }: Props) { | ||
return ( | ||
<TabBarSafeAreaView> | ||
<Web3AppWebview manifest={manifest} customHandlers={{}} /> | ||
<Web3AppWebview manifest={manifest} customHandlers={{}} onStateChange={setWebviewState} /> | ||
</TabBarSafeAreaView> | ||
); | ||
} |
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