Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix: connect wallet options are broken (#2520)
Browse files Browse the repository at this point in the history
* fix: connect wallet options are broken

* fix share style
  • Loading branch information
alantoa authored Nov 9, 2023
1 parent 4613803 commit 3d639ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useRef, useMemo, useCallback, useEffect, Suspense } from "react";
import { useRef, useMemo, useCallback, Suspense } from "react";
import {
useWindowDimensions,
Linking,
Expand All @@ -15,20 +15,15 @@ import { useIsDarkMode } from "@showtime-xyz/universal.hooks";
import {
MoreHorizontal,
Instagram,
TwitterOutline,
Download,
Link,
CreatorChannelType,
ShowtimeBrand,
ArrowTopRounded,
GrowthArrow,
UnLocked,
PieChart,
CreatorChannelFilled,
X,
} from "@showtime-xyz/universal.icon";
import { Image } from "@showtime-xyz/universal.image";
import { useModalScreenContext } from "@showtime-xyz/universal.modal-screen";
import { Pressable } from "@showtime-xyz/universal.pressable";
import { useSafeAreaInsets } from "@showtime-xyz/universal.safe-area";
import { Spinner } from "@showtime-xyz/universal.spinner";
Expand All @@ -41,22 +36,16 @@ import { ErrorBoundary } from "app/components/error-boundary";
import { useIsInstalledApps, useShareImage } from "app/components/share";
import { useUserProfile } from "app/hooks/api-hooks";
import { useCreatorTokenPriceToBuyNext } from "app/hooks/creator-token/use-creator-token-price-to-buy-next";
import { useUser } from "app/hooks/use-user";
import { createParam } from "app/navigation/use-param";
import {
getCurrencyPrice,
getTwitterIntent,
getWebBaseURL,
} from "app/utilities";
import { getTwitterIntentUsername } from "app/utilities";

import { breakpoints } from "design-system/theme";
import { toast } from "design-system/toast";

import {
PlatformBuyButton,
PlatformSellButton,
} from "../profile/buy-and-sell-buttons";
import { ShowtimeBrandLogo } from "../showtime-brand";

type ChannelsPromoteParams = {
Expand Down Expand Up @@ -176,7 +165,7 @@ export const CreatorTokenSocialShare = () => {
width: imageWidth,
height: imageHeight - 20,
}}
tw="mb-4 items-center overflow-hidden rounded-3xl"
tw="mb-4 items-center overflow-hidden rounded-t-3xl"
>
<View tw="absolute inset-0">
<Image
Expand Down
19 changes: 8 additions & 11 deletions packages/app/providers/wallet-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const wallets = {
id: "4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0",
name: "Trust Wallet",
homepage: "https://trustwallet.com/",
image_id: "0528ee7e-16d1-4089-21e3-bbfb41933100",
image_id: "7677b54f-3486-46e2-4e37-bf8747814f00",
order: 1,
app: {
browser: null,
Expand Down Expand Up @@ -255,14 +255,7 @@ function WalletConnectQRCodeModal(props: RenderModalProps) {
}

return (
<FullWindowOverlay
style={{
position: "absolute",
width: "100%",
height: "100%",
justifyContent: "center",
}}
>
<FullWindowOverlay>
<View tw="flex-1 bg-white dark:bg-black">
<View style={{ paddingTop: insets.top }} />
<ModalHeader title="Connect my wallet" onClose={props.onDismiss} />
Expand All @@ -284,7 +277,9 @@ function WalletConnectQRCodeModal(props: RenderModalProps) {
alt="Coinbase Wallet"
/>
<View tw="w-4" />
<Text tw="text-lg text-black dark:text-white">Coinbase Wallet</Text>
<Text tw="text-base font-bold text-black dark:text-white">
Coinbase Wallet
</Text>
</PressableScale>

{WALLETS.map((wallet) => {
Expand All @@ -309,7 +304,9 @@ function WalletConnectQRCodeModal(props: RenderModalProps) {
alt={w.name}
/>
<View tw="w-4" />
<Text tw="text-lg text-black dark:text-white">{w.name}</Text>
<Text tw="text-base font-bold text-black dark:text-white">
{w.name}
</Text>
</PressableScale>
);
})}
Expand Down

0 comments on commit 3d639ae

Please sign in to comment.