refactor: replace 'preact' with 'react' (#1048)

This commit is contained in:
Aman Harwara
2022-05-30 12:42:52 +05:30
committed by GitHub
parent e74b4953ea
commit 8c368dd96b
231 changed files with 4794 additions and 4302 deletions

View File

@@ -1,8 +1,7 @@
import { AlertDialog, AlertDialogDescription, AlertDialogLabel } from '@reach/alert-dialog'
import { FunctionalComponent } from 'preact'
import { Icon } from '@/Components/Icon/Icon'
import { FunctionComponent, useCallback, useRef } from 'react'
import Icon from '@/Components/Icon/Icon'
import { PremiumIllustration } from '@standardnotes/icons'
import { useCallback, useRef } from 'preact/hooks'
import { WebApplication } from '@/UIModels/Application'
import { openSubscriptionDashboard } from '@/Utils/ManageSubscription'
@@ -14,7 +13,7 @@ type Props = {
showModal: boolean
}
export const PremiumFeaturesModal: FunctionalComponent<Props> = ({
const PremiumFeaturesModal: FunctionComponent<Props> = ({
application,
featureName,
hasSubscription,
@@ -68,3 +67,5 @@ export const PremiumFeaturesModal: FunctionalComponent<Props> = ({
</AlertDialog>
) : null
}
export default PremiumFeaturesModal