about summary refs log tree commit diff
path: root/src/view/com/composer/Prompt.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-07-25 20:45:15 +0100
committerGitHub <noreply@github.com>2024-07-25 20:45:15 +0100
commit401e92ed425db27b3904184c2cea148b19f9b7da (patch)
treedcd46e64c6ea9ed637fcc1e6415f16ae0da0137a /src/view/com/composer/Prompt.tsx
parent00240b95b90847f6691f7fa19c19f37d2ffc6624 (diff)
downloadvoidsky-401e92ed425db27b3904184c2cea148b19f9b7da.tar.zst
Replace `import hairlineWidth =` with const (#4831)
* replace import with const

* just use `StyleSheet.hairlineWidth`

---------

Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
Diffstat (limited to 'src/view/com/composer/Prompt.tsx')
-rw-r--r--src/view/com/composer/Prompt.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/view/com/composer/Prompt.tsx b/src/view/com/composer/Prompt.tsx
index 54defb101..20637c7e9 100644
--- a/src/view/com/composer/Prompt.tsx
+++ b/src/view/com/composer/Prompt.tsx
@@ -9,7 +9,6 @@ import {usePalette} from 'lib/hooks/usePalette'
 import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries'
 import {Text} from '../util/text/Text'
 import {UserAvatar} from '../util/UserAvatar'
-import hairlineWidth = StyleSheet.hairlineWidth
 
 export function ComposePrompt({onPressCompose}: {onPressCompose: () => void}) {
   const {currentAccount} = useSession()
@@ -49,7 +48,7 @@ const styles = StyleSheet.create({
     paddingBottom: 10,
     flexDirection: 'row',
     alignItems: 'center',
-    borderTopWidth: hairlineWidth,
+    borderTopWidth: StyleSheet.hairlineWidth,
   },
   labelMobile: {
     paddingLeft: 12,