about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-12-30 15:58:28 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-12-30 15:58:28 -0600
commit3972706c54c4e89f2167dc65b931ed05356beb9f (patch)
treed4811515e109a3481ceff78bf95c0a6246391c16 /src
parent8f59957fab7a68be113cec0c14067734e20911de (diff)
downloadvoidsky-3972706c54c4e89f2167dc65b931ed05356beb9f.tar.zst
Fix to loading state
Diffstat (limited to 'src')
-rw-r--r--src/view/com/util/LoadingPlaceholder.tsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/view/com/util/LoadingPlaceholder.tsx b/src/view/com/util/LoadingPlaceholder.tsx
index 15488167f..76e3c495d 100644
--- a/src/view/com/util/LoadingPlaceholder.tsx
+++ b/src/view/com/util/LoadingPlaceholder.tsx
@@ -2,8 +2,9 @@ import React from 'react'
 import {StyleSheet, StyleProp, View, ViewStyle} from 'react-native'
 import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
 import {UpIcon} from '../../lib/icons'
-import {s, colors} from '../../lib/styles'
+import {s} from '../../lib/styles'
 import {useTheme} from '../../lib/ThemeContext'
+import {usePalette} from '../../lib/hooks/usePalette'
 
 export function LoadingPlaceholder({
   width,
@@ -44,8 +45,9 @@ export function PostLoadingPlaceholder({
   style?: StyleProp<ViewStyle>
 }) {
   const theme = useTheme()
+  const pal = usePalette('default')
   return (
-    <View style={[styles.post, style]}>
+    <View style={[styles.post, pal.view, style]}>
       <LoadingPlaceholder width={50} height={50} style={styles.avatar} />
       <View style={[s.flex1]}>
         <LoadingPlaceholder width={100} height={8} style={[s.mb10]} />
@@ -104,8 +106,9 @@ export function NotificationLoadingPlaceholder({
 }: {
   style?: StyleProp<ViewStyle>
 }) {
+  const pal = usePalette('default')
   return (
-    <View style={[styles.notification, style]}>
+    <View style={[styles.notification, pal.view, style]}>
       <View style={[s.flexRow, s.mb10]}>
         <LoadingPlaceholder width={30} height={30} style={styles.smallAvatar} />
       </View>