@@ -4,7 +4,6 @@ import type {NativeEventSubscription} from 'react-native';
4
4
import { AppState , Linking , Platform } from 'react-native' ;
5
5
import type { OnyxEntry } from 'react-native-onyx' ;
6
6
import Onyx , { useOnyx } from 'react-native-onyx' ;
7
- import alert from './components/Alert' ;
8
7
import ConfirmModal from './components/ConfirmModal' ;
9
8
import DeeplinkWrapper from './components/DeeplinkWrapper' ;
10
9
import EmojiPicker from './components/EmojiPicker/EmojiPicker' ;
@@ -28,7 +27,7 @@ import * as ActiveClientManager from './libs/ActiveClientManager';
28
27
import { isSafari } from './libs/Browser' ;
29
28
import * as Environment from './libs/Environment/Environment' ;
30
29
import FS from './libs/Fullstory' ;
31
- import * as Growl from './libs/Growl' ;
30
+ import Growl , { growlRef } from './libs/Growl' ;
32
31
import Log from './libs/Log' ;
33
32
import migrateOnyx from './libs/migrateOnyx' ;
34
33
import Navigation from './libs/Navigation/Navigation' ;
@@ -57,7 +56,7 @@ Onyx.registerLogger(({level, message, parameters}) => {
57
56
// when they don't return data.
58
57
const shouldShowAlert = typeof parameters === 'object' && ! Array . isArray ( parameters ) && 'showAlert' in parameters && 'key' in parameters ;
59
58
if ( Environment . isDevelopment ( ) && shouldShowAlert ) {
60
- alert ( `${ message } Key: ${ parameters . key as string } ` ) ;
59
+ Growl . error ( `${ message } Key: ${ parameters . key as string } ` , 10000 ) ;
61
60
}
62
61
} else if ( level === 'hmmm' ) {
63
62
Log . hmmm ( message , parameters ) ;
@@ -277,7 +276,7 @@ function Expensify() {
277
276
>
278
277
{ shouldInit && (
279
278
< >
280
- < GrowlNotification ref = { Growl . growlRef } />
279
+ < GrowlNotification ref = { growlRef } />
281
280
< PopoverReportActionContextMenu ref = { ReportActionContextMenu . contextMenuRef } />
282
281
< EmojiPicker ref = { EmojiPickerAction . emojiPickerRef } />
283
282
{ /* We include the modal for showing a new update at the top level so the option is always present. */ }
0 commit comments