mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
tweak(phone): Set time in dev mode
This commit is contained in:
1 parent
833efedec4
commit
3697201afe
1 file changed
+7
-1
+7
-1
@@ -33,6 +33,7 @@ import { usePhone } from './os/phone/hooks/usePhone';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { useSnackbar } from './ui/hooks/useSnackbar';
|
import { useSnackbar } from './ui/hooks/useSnackbar';
|
||||||
import { PhoneEvents } from '../../typings/phone';
|
import { PhoneEvents } from '../../typings/phone';
|
||||||
|
import dayjs from 'dayjs';
|
||||||
|
|
||||||
function Phone() {
|
function Phone() {
|
||||||
const { t, i18n } = useTranslation();
|
const { t, i18n } = useTranslation();
|
||||||
@@ -150,7 +151,7 @@ function Phone() {
|
|||||||
|
|
||||||
export default Phone;
|
export default Phone;
|
||||||
|
|
||||||
InjectDebugData([
|
InjectDebugData<any>([
|
||||||
{
|
{
|
||||||
app: 'PHONE',
|
app: 'PHONE',
|
||||||
method: PhoneEvents.SET_VISIBILITY,
|
method: PhoneEvents.SET_VISIBILITY,
|
||||||
@@ -161,4 +162,9 @@ InjectDebugData([
|
|||||||
method: PhoneEvents.SET_PHONE_READY,
|
method: PhoneEvents.SET_PHONE_READY,
|
||||||
data: true,
|
data: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
app: 'PHONE',
|
||||||
|
method: PhoneEvents.SET_TIME,
|
||||||
|
data: dayjs().format('hh:mm'),
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
Reference in new issue
Block a user