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/load-latest/LoadLatestBtn.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/load-latest/LoadLatestBtn.tsx')
-rw-r--r-- | src/view/com/util/load-latest/LoadLatestBtn.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/view/com/util/load-latest/LoadLatestBtn.tsx b/src/view/com/util/load-latest/LoadLatestBtn.tsx index 9de03a4f3..2310b1f27 100644 --- a/src/view/com/util/load-latest/LoadLatestBtn.tsx +++ b/src/view/com/util/load-latest/LoadLatestBtn.tsx @@ -13,7 +13,6 @@ import {clamp} from '#/lib/numbers' import {colors} from '#/lib/styles' import {isWeb} from '#/platform/detection' import {useSession} from '#/state/session' -import hairlineWidth = StyleSheet.hairlineWidth const AnimatedTouchableOpacity = Animated.createAnimatedComponent(TouchableOpacity) @@ -74,7 +73,7 @@ const styles = StyleSheet.create({ // @ts-ignore 'fixed' is web only -prf position: isWeb ? 'fixed' : 'absolute', left: 18, - borderWidth: hairlineWidth, + borderWidth: StyleSheet.hairlineWidth, width: 52, height: 52, borderRadius: 26, |