Bluesky app fork with some witchin' additions 💫

Remove some unused things (#9719)

authored by

Eric Bailey and committed by
GitHub
5989bf7f a4f173d0

+1 -29
-4
src/lib/assets.native.ts
··· 1 - import {type ImageRequireSource} from 'react-native' 2 - 3 - export const DEF_AVATAR: ImageRequireSource = require('../../assets/default-avatar.png') 4 - export const CLOUD_SPLASH: ImageRequireSource = require('../../assets/splash.png')
-6
src/lib/assets.ts
··· 1 - import {type ImageRequireSource} from 'react-native' 2 - 3 - // @ts-ignore we need to pretend -prf 4 - export const DEF_AVATAR: ImageRequireSource = {uri: '/img/default-avatar.png'} 5 - // @ts-ignore we need to pretend -prf 6 - export const CLOUD_SPLASH: ImageRequireSource = {uri: '/img/splash.png'}
-2
src/lib/build-flags.ts
··· 1 - export const LOGIN_INCLUDE_DEV_SERVERS = true 2 - export const PWI_ENABLED = true
-15
src/lib/canvas.ts
··· 1 - export const getCanvas = (base64: string): Promise<HTMLCanvasElement> => { 2 - return new Promise(resolve => { 3 - const image = new Image() 4 - image.onload = () => { 5 - const canvas = document.createElement('canvas') 6 - canvas.width = image.width 7 - canvas.height = image.height 8 - 9 - const ctx = canvas.getContext('2d') 10 - ctx?.drawImage(image, 0, 0) 11 - resolve(canvas) 12 - } 13 - image.src = base64 14 - }) 15 - }
+1 -2
src/view/shell/createNativeStackNavigatorWithAuth.tsx
··· 25 25 type NativeStackNavigatorProps, 26 26 } from '@react-navigation/native-stack' 27 27 28 - import {PWI_ENABLED} from '#/lib/build-flags' 29 28 import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' 30 29 import {useSession} from '#/state/session' 31 30 import {useOnboardingState} from '#/state/shell' ··· 115 114 const {setShowLoggedOut} = useLoggedOutViewControls() 116 115 const {isMobile} = useWebMediaQueries() 117 116 const {leftNavMinimal} = useLayoutBreakpoints() 118 - if (!hasSession && (!PWI_ENABLED || activeRouteRequiresAuth || IS_NATIVE)) { 117 + if (!hasSession && (activeRouteRequiresAuth || IS_NATIVE)) { 119 118 return <LoggedOut /> 120 119 } 121 120 if (hasSession && currentAccount?.signupQueued) {