Prettify misc files

This commit is contained in:
Sofiya Tepikin
2022-08-23 12:58:32 +02:00
parent 1b8fd97d16
commit ac7a36925f
8 changed files with 69 additions and 67 deletions
+5 -3
View File
@@ -1,5 +1,7 @@
import Toast from 'react-native-simple-toast'
export const showToast = (text) => Toast.show(
text, Toast.SHORT, ['RCTModalHostViewController', 'UIAlertController']
)
export const showToast = (text) =>
Toast.show(text, Toast.SHORT, [
'RCTModalHostViewController',
'UIAlertController',
])
+2 -2
View File
@@ -1,2 +1,2 @@
export const getLabelsList =
(categories) => categories.map((label, i) => ({ label, value: i }))
export const getLabelsList = (categories) =>
categories.map((label, i) => ({ label, value: i }))
+9 -8
View File
@@ -1,10 +1,11 @@
export default function (jsDate) {
const vals = [jsDate.getHours(), jsDate.getMinutes()]
return vals.map(val => {
if (parseInt(val) < 10) {
val = `0${val}`
}
return val
}).join(':')
}
return vals
.map((val) => {
if (parseInt(val) < 10) {
val = `0${val}`
}
return val
})
.join(':')
}