about summary refs log tree commit diff
path: root/src/components/StarterPack/QrCode.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-09-09 18:45:36 +0300
committerGitHub <noreply@github.com>2025-09-09 18:45:36 +0300
commit4a1b1f17f46de9f8dde2766d61edc02c2267b14b (patch)
tree1f166879b40c73db7e1afd9b8ab189c872f58214 /src/components/StarterPack/QrCode.tsx
parent7574a745d17135b33a31e3fb7da8953ea378fe4c (diff)
downloadvoidsky-4a1b1f17f46de9f8dde2766d61edc02c2267b14b.tar.zst
Clean up dialogs (#8934)
Diffstat (limited to 'src/components/StarterPack/QrCode.tsx')
-rw-r--r--src/components/StarterPack/QrCode.tsx20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/components/StarterPack/QrCode.tsx b/src/components/StarterPack/QrCode.tsx
index 86f1aa1e6..4c28a41c5 100644
--- a/src/components/StarterPack/QrCode.tsx
+++ b/src/components/StarterPack/QrCode.tsx
@@ -1,4 +1,4 @@
-import React from 'react'
+import {lazy} from 'react'
 import {View} from 'react-native'
 // @ts-expect-error missing types
 import QRCode from 'react-native-qrcode-styled'
@@ -15,20 +15,20 @@ import {LinearGradientBackground} from '#/components/LinearGradientBackground'
 import {Text} from '#/components/Typography'
 import * as bsky from '#/types/bsky'
 
-const LazyViewShot = React.lazy(
+const LazyViewShot = lazy(
   // @ts-expect-error dynamic import
   () => import('react-native-view-shot/src/index'),
 )
 
-interface Props {
+export function QrCode({
+  starterPack,
+  link,
+  ref,
+}: {
   starterPack: AppBskyGraphDefs.StarterPackView
   link: string
-}
-
-export const QrCode = React.forwardRef<ViewShot, Props>(function QrCode(
-  {starterPack, link},
-  ref,
-) {
+  ref: React.Ref<ViewShot>
+}) {
   const {record} = starterPack
 
   if (
@@ -93,7 +93,7 @@ export const QrCode = React.forwardRef<ViewShot, Props>(function QrCode(
       </LinearGradientBackground>
     </LazyViewShot>
   )
-})
+}
 
 export function QrCodeInner({link}: {link: string}) {
   const t = useTheme()