diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-07-25 20:45:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 20:45:15 +0100 |
commit | 401e92ed425db27b3904184c2cea148b19f9b7da (patch) | |
tree | dcd46e64c6ea9ed637fcc1e6415f16ae0da0137a /src/view/com/util/ViewHeader.tsx | |
parent | 00240b95b90847f6691f7fa19c19f37d2ffc6624 (diff) | |
download | voidsky-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/util/ViewHeader.tsx')
-rw-r--r-- | src/view/com/util/ViewHeader.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/view/com/util/ViewHeader.tsx b/src/view/com/util/ViewHeader.tsx index e659aed42..ca417034d 100644 --- a/src/view/com/util/ViewHeader.tsx +++ b/src/view/com/util/ViewHeader.tsx @@ -13,10 +13,9 @@ import {usePalette} from 'lib/hooks/usePalette' import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' import {NavigationProp} from 'lib/routes/types' import {useTheme} from '#/alf' +import {Menu_Stroke2_Corner0_Rounded as Menu} from '#/components/icons/Menu' import {Text} from './text/Text' import {CenteredView} from './Views' -import hairlineWidth = StyleSheet.hairlineWidth -import {Menu_Stroke2_Corner0_Rounded as Menu} from '#/components/icons/Menu' const BACK_HITSLOP = {left: 20, top: 20, right: 50, bottom: 20} @@ -154,7 +153,7 @@ function DesktopWebHeader({ styles.desktopHeader, pal.border, { - borderBottomWidth: showBorder ? hairlineWidth : 0, + borderBottomWidth: showBorder ? StyleSheet.hairlineWidth : 0, }, {display: 'flex', flexDirection: 'column'}, ]}> @@ -243,7 +242,7 @@ const styles = StyleSheet.create({ marginRight: 'auto', }, border: { - borderBottomWidth: hairlineWidth, + borderBottomWidth: StyleSheet.hairlineWidth, }, titleContainer: { marginLeft: 'auto', |