push
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { TouchableOpacity, Text, View, StyleSheet, Platform } from 'react-native'
|
||||
import { TouchableOpacity, Text, View, StyleSheet } from 'react-native'
|
||||
import { Ionicons } from '@expo/vector-icons'
|
||||
import * as WebBrowser from 'expo-web-browser'
|
||||
import { getApiBaseUrl } from '@/lib/api-url'
|
||||
|
||||
interface Attachment {
|
||||
id: string
|
||||
@@ -10,7 +11,7 @@ interface Attachment {
|
||||
mimeType?: string | null
|
||||
}
|
||||
|
||||
const API_URL = process.env.EXPO_PUBLIC_API_URL ?? 'http://localhost:3000'
|
||||
const API_URL = getApiBaseUrl()
|
||||
|
||||
function getFileIcon(mimeType?: string | null): keyof typeof Ionicons.glyphMap {
|
||||
if (!mimeType) return 'document-outline'
|
||||
|
||||
Reference in New Issue
Block a user