Compare commits

...

1 Commits

Author SHA1 Message Date
Eric Bailey ed5802a450 Remove some unused things 2026-01-16 17:21:19 -06:00
5 changed files with 1 additions and 29 deletions
-4
View File
@@ -1,4 +0,0 @@
import {type ImageRequireSource} from 'react-native'
export const DEF_AVATAR: ImageRequireSource = require('../../assets/default-avatar.png')
export const CLOUD_SPLASH: ImageRequireSource = require('../../assets/splash.png')
-6
View File
@@ -1,6 +0,0 @@
import {type ImageRequireSource} from 'react-native'
// @ts-ignore we need to pretend -prf
export const DEF_AVATAR: ImageRequireSource = {uri: '/img/default-avatar.png'}
// @ts-ignore we need to pretend -prf
export const CLOUD_SPLASH: ImageRequireSource = {uri: '/img/splash.png'}
-2
View File
@@ -1,2 +0,0 @@
export const LOGIN_INCLUDE_DEV_SERVERS = true
export const PWI_ENABLED = true
-15
View File
@@ -1,15 +0,0 @@
export const getCanvas = (base64: string): Promise<HTMLCanvasElement> => {
return new Promise(resolve => {
const image = new Image()
image.onload = () => {
const canvas = document.createElement('canvas')
canvas.width = image.width
canvas.height = image.height
const ctx = canvas.getContext('2d')
ctx?.drawImage(image, 0, 0)
resolve(canvas)
}
image.src = base64
})
}
@@ -25,7 +25,6 @@ import {
type NativeStackNavigatorProps,
} from '@react-navigation/native-stack'
import {PWI_ENABLED} from '#/lib/build-flags'
import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
import {useSession} from '#/state/session'
import {useOnboardingState} from '#/state/shell'
@@ -115,7 +114,7 @@ function NativeStackNavigator({
const {setShowLoggedOut} = useLoggedOutViewControls()
const {isMobile} = useWebMediaQueries()
const {leftNavMinimal} = useLayoutBreakpoints()
if (!hasSession && (!PWI_ENABLED || activeRouteRequiresAuth || IS_NATIVE)) {
if (!hasSession && (activeRouteRequiresAuth || IS_NATIVE)) {
return <LoggedOut />
}
if (hasSession && currentAccount?.signupQueued) {