about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-21 13:36:39 -0500
committerPaul Frazee <pfrazee@gmail.com>2023-03-21 13:36:39 -0500
commitb542f0f7f8fc9cc93e22d964d8bab1ba30d47204 (patch)
tree9114646912f8e7d46e8d6460bd28f1df71ef74e4 /src
parent1e34e622595a2caf171b1091c98e1b40a66d44d9 (diff)
parent08d513e8c1ce67aa2400b14a81d3e44399579f8d (diff)
downloadvoidsky-b542f0f7f8fc9cc93e22d964d8bab1ba30d47204.tar.zst
Merge branch 'main' of github.com:bluesky-social/social-app into main
Diffstat (limited to 'src')
-rw-r--r--src/view/com/util/UserBanner.tsx11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/view/com/util/UserBanner.tsx b/src/view/com/util/UserBanner.tsx
index 400d8ac34..847ef6dba 100644
--- a/src/view/com/util/UserBanner.tsx
+++ b/src/view/com/util/UserBanner.tsx
@@ -82,12 +82,6 @@ export function UserBanner({
     },
   ]
 
-  const renderSvg = () => (
-    <Svg width="100%" height="150" viewBox="0 0 400 150">
-      <Rect x="0" y="0" width="400" height="150" fill="#0070ff" />
-    </Svg>
-  )
-
   // setUserBanner is only passed as prop on the EditProfile component
   return onSelectNewBanner ? (
     <DropdownButton
@@ -118,7 +112,7 @@ export function UserBanner({
       source={{uri: banner}}
     />
   ) : (
-    renderSvg()
+    <View style={[styles.bannerImage, styles.defaultBanner]} />
   )
 }
 
@@ -138,4 +132,7 @@ const styles = StyleSheet.create({
     width: '100%',
     height: 150,
   },
+  defaultBanner: {
+    backgroundColor: '#0070ff',
+  },
 })