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>
This commit is contained in:
parent
00240b95b9
commit
401e92ed42
27 changed files with 81 additions and 105 deletions
|
|
@ -39,7 +39,6 @@ import {Link} from '../Link'
|
|||
import {PostMeta} from '../PostMeta'
|
||||
import {Text} from '../text/Text'
|
||||
import {PostEmbeds} from '.'
|
||||
import hairlineWidth = StyleSheet.hairlineWidth
|
||||
|
||||
export function MaybeQuoteEmbed({
|
||||
embed,
|
||||
|
|
@ -262,7 +261,7 @@ const styles = StyleSheet.create({
|
|||
marginTop: 8,
|
||||
paddingVertical: 12,
|
||||
paddingHorizontal: 12,
|
||||
borderWidth: hairlineWidth,
|
||||
borderWidth: StyleSheet.hairlineWidth,
|
||||
},
|
||||
errorContainer: {
|
||||
flexDirection: 'row',
|
||||
|
|
@ -272,7 +271,7 @@ const styles = StyleSheet.create({
|
|||
marginTop: 8,
|
||||
paddingVertical: 14,
|
||||
paddingHorizontal: 14,
|
||||
borderWidth: hairlineWidth,
|
||||
borderWidth: StyleSheet.hairlineWidth,
|
||||
},
|
||||
alert: {
|
||||
marginBottom: 6,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue