File tree Expand file tree Collapse file tree 3 files changed +209
-188
lines changed
Expand file tree Collapse file tree 3 files changed +209
-188
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ import { ALBY_LIGHTNING_ADDRESS } from "~/lib/constants";
66import { initiatePaymentFlow } from "~/lib/initiatePaymentFlow" ;
77import { useAppStore } from "~/lib/state/appStore" ;
88import { useThemeColor } from "~/lib/useThemeColor" ;
9+ import { cn } from "~/lib/utils" ;
910import { Button } from "./ui/button" ;
1011
11- function AlbyBanner ( ) {
12+ function AlbyBanner ( { className } : { className ?: string } ) {
1213 const { shadow } = useThemeColor ( "shadow" ) ;
1314 const lastPayment = useAppStore . getState ( ) . getLastAlbyPayment ( ) ;
1415 const [ showBanner , setShowBanner ] = useState (
@@ -39,7 +40,10 @@ function AlbyBanner() {
3940
4041 return (
4142 < View
42- className = "bg-background dark:bg-muted rounded-2xl flex flex-col gap-3 p-4 relative mx-2"
43+ className = { cn (
44+ "bg-background dark:bg-muted rounded-2xl flex flex-col gap-3 p-4 relative" ,
45+ className ,
46+ ) }
4347 style = { {
4448 ...Platform . select ( {
4549 // make sure bg color is applied to avoid RCTView errors
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ export function Home() {
136136 showsVerticalScrollIndicator = { false }
137137 contentContainerClassName = "flex-1 px-6"
138138 >
139- < View className = "flex-1 justify-center gap-8" >
139+ < View className = "flex-1 justify-center gap-4 sm:gap- 8" >
140140 < View className = "flex items-center justify-center gap-2" >
141141 { wallets . length > 1 && (
142142 < TouchableOpacity
@@ -243,7 +243,7 @@ export function Home() {
243243 ) }
244244 </ TouchableOpacity >
245245 </ View >
246- { new Date ( ) . getDate ( ) = == 21 && < AlbyBanner /> }
246+ { new Date ( ) . getDate ( ) ! == 21 && < AlbyBanner /> }
247247 </ View >
248248 </ ScrollView >
249249 < View className = "flex items-center justify-center" >
You can’t perform that action at this time.
0 commit comments