Skip to content

Commit

Permalink
fix: hide bottom tabs on live auction webview (#11302)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8967ae0)
  • Loading branch information
MounirDhahri committed Dec 18, 2024
1 parent 6b24a8a commit 4bf23dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/app/Components/ArtsyWebView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ export const ArtsyWebView = forwardRef<
// to a different vanityURL that we can handle inapp, such as Fair & Partner.
if (
result.type === "match" &&
["ReactWebView", "ModalWebView", "VanityURLEntity"].includes(result.module)
["ReactWebView", "ModalWebView", "VanityURLEntity", "LiveAuctionWebView"].includes(
result.module
)
) {
if (innerRef.current) {
innerRef.current.shareTitleUrl = targetURL
Expand Down
2 changes: 1 addition & 1 deletion src/app/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export function getDomainMap(): Record<string, RouteMatcher[] | null> {
const liveDotArtsyDotNet: RouteMatcher[] = compact([
Platform.OS === "ios"
? addRoute("/*", "LiveAuction", (params) => ({ slug: params["*"] }))
: addRoute("/*", "ReactWebView", (params) => ({
: addRoute("/*", "ModalWebView", (params) => ({
url: unsafe__getEnvironment().predictionURL + "/" + params["*"],
})),
])
Expand Down

0 comments on commit 4bf23dc

Please sign in to comment.