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
|
@ -62,13 +62,12 @@ import {UserAvatar} from 'view/com/util/UserAvatar'
|
|||
import {ScrollView} from 'view/com/util/Views'
|
||||
import {DeactivateAccountDialog} from '#/screens/Settings/components/DeactivateAccountDialog'
|
||||
import {useTheme} from '#/alf'
|
||||
import {atoms as a} from '#/alf'
|
||||
import {useDialogControl} from '#/components/Dialog'
|
||||
import {BirthDateSettingsDialog} from '#/components/dialogs/BirthDateSettings'
|
||||
import {navigate, resetToTab} from '#/Navigation'
|
||||
import {Email2FAToggle} from './Email2FAToggle'
|
||||
import {ExportCarDialog} from './ExportCarDialog'
|
||||
import hairlineWidth = StyleSheet.hairlineWidth
|
||||
import {atoms as a} from '#/alf'
|
||||
|
||||
function SettingsAccountCard({
|
||||
account,
|
||||
|
@ -326,7 +325,7 @@ export function SettingsScreen({}: Props) {
|
|||
showBackButton={isMobile}
|
||||
style={[
|
||||
pal.border,
|
||||
{borderBottomWidth: hairlineWidth},
|
||||
{borderBottomWidth: StyleSheet.hairlineWidth},
|
||||
!isMobile && {borderLeftWidth: 1, borderRightWidth: 1},
|
||||
]}>
|
||||
<View style={{flex: 1}}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue