tweak(phone): Set time in dev mode

This commit is contained in:
Taso committed 2021-04-01 14:39:56 -04:00
1 parent 833efedec4
commit 3697201afe
1 file changed
+7 -1
+7 -1
View File
@@ -33,6 +33,7 @@ import { usePhone } from './os/phone/hooks/usePhone';
import { useTranslation } from 'react-i18next';
import { useSnackbar } from './ui/hooks/useSnackbar';
import { PhoneEvents } from '../../typings/phone';
import dayjs from 'dayjs';
function Phone() {
const { t, i18n } = useTranslation();
@@ -150,7 +151,7 @@ function Phone() {
export default Phone;
InjectDebugData([
InjectDebugData<any>([
{
app: 'PHONE',
method: PhoneEvents.SET_VISIBILITY,
@@ -161,4 +162,9 @@ InjectDebugData([
method: PhoneEvents.SET_PHONE_READY,
data: true,
},
{
app: 'PHONE',
method: PhoneEvents.SET_TIME,
data: dayjs().format('hh:mm'),
},
]);