File tree Expand file tree Collapse file tree 3 files changed +2
-25
lines changed
k2-alpine/src/components/Toast Expand file tree Collapse file tree 3 files changed +2
-25
lines changed Original file line number Diff line number Diff line change @@ -7,20 +7,13 @@ import { EncryptedStoreProvider } from 'contexts/EncryptedStoreProvider'
77import { PosthogContextProvider } from 'contexts/PosthogContext'
88import { ReactQueryProvider } from 'contexts/ReactQueryProvider'
99import React , { FC , PropsWithChildren } from 'react'
10- import { Platform } from 'react-native'
1110import { ConfettiMethods } from 'react-native-fast-confetti'
1211import { RootSiblingParent } from 'react-native-root-siblings'
13- import { FullWindowOverlay } from 'react-native-screens'
14- import Toast from 'react-native-toast-notifications'
1512import SentryService from 'services/sentry/SentryService'
1613import { App } from './App'
1714import JailbreakCheck from './common/components/JailbreakCheck'
1815import TopLevelErrorFallback from './common/components/TopLevelErrorFallback'
1916
20- const setGlobalToast = ( toast : Toast ) : void => {
21- global . toast = toast
22- }
23-
2417const setGlobalConfetti = ( confetti : ConfettiMethods ) : void => {
2518 global . confetti = confetti
2619}
@@ -44,22 +37,6 @@ const ContextApp = (): JSX.Element => {
4437 < App />
4538 </ RootSiblingParent >
4639 < JailbreakCheck />
47- < Toast
48- ToastContainerWrapper = {
49- Platform . OS === 'ios'
50- ? {
51- component : FullWindowOverlay ,
52- props : {
53- children : undefined
54- }
55- }
56- : undefined
57- }
58- ref = { setGlobalToast }
59- offsetTop = { 30 }
60- normalColor = { '00FFFFFF' }
61- />
62-
6340 < Confetti ref = { setGlobalConfetti } />
6441 </ ContextProviders >
6542 </ Sentry . ErrorBoundary >
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ export const GlobalToast = (): JSX.Element => {
4343 }
4444 : undefined
4545 }
46+ containerStyle = { { width : undefined } }
4647 placement = "top"
4748 animationType = "slide-in"
4849 offsetTop = { offsetTop }
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ export const TransactionSnackbar = ({
110110 onPress = { onPress } >
111111 < View
112112 style = { {
113- width : SCREEN_WIDTH ,
113+ maxWidth : SCREEN_WIDTH * 0.9 ,
114114 justifyContent : 'center' ,
115115 alignItems : 'center'
116116 } } >
@@ -129,7 +129,6 @@ export const TransactionSnackbar = ({
129129 variant = "body1"
130130 numberOfLines = { 1 }
131131 sx = { {
132- maxWidth : '80%' ,
133132 marginLeft : 5 ,
134133 fontSize : 14 ,
135134 color : textColor
You can’t perform that action at this time.
0 commit comments