fix(mobile): replace component viewer usage with interface

This commit is contained in:
Karol Sójko
2022-08-05 14:54:04 +02:00
parent 05435553a4
commit 0825cedfbe
3 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ import { useFocusEffect, useNavigation } from '@react-navigation/native'
import { ApplicationContext } from '@Root/ApplicationContext'
import { AppStackNavigationProp } from '@Root/AppStack'
import { SCREEN_NOTES } from '@Root/Screens/screens'
import { ButtonType, ComponentViewer, PrefKey } from '@standardnotes/snjs'
import { ButtonType, ComponentViewerInterface, PrefKey } from '@standardnotes/snjs'
import { ThemeServiceContext } from '@Style/ThemeService'
import React, { useCallback, useContext, useEffect, useRef, useState } from 'react'
import { Platform } from 'react-native'
@@ -25,7 +25,7 @@ import {
} from './ComponentView.styled'
type Props = {
componentViewer: ComponentViewer
componentViewer: ComponentViewerInterface
onLoadEnd: () => void
onLoadStart: () => void
onLoadError: (error: ComponentLoadingError, desc?: string) => void

View File

@@ -7,7 +7,7 @@ import SNTextView from '@standardnotes/react-native-textview'
import {
ApplicationEvent,
ComponentMutator,
ComponentViewer,
ComponentViewerInterface,
ContentType,
isPayloadSourceInternalChange,
isPayloadSourceRetrieved,
@@ -51,7 +51,7 @@ type State = {
webViewErrorDesc?: string
loadingWebview: boolean
downloadingEditor: boolean
componentViewer?: ComponentViewer
componentViewer?: ComponentViewerInterface
}
type PropsWhenNavigating = AppStackNavigationProp<typeof SCREEN_COMPOSE>