diff --git a/phone/src/apps/dialer/components/DialPadGrid.tsx b/phone/src/apps/dialer/components/DialPadGrid.tsx
index aa61232..02b3ccb 100644
--- a/phone/src/apps/dialer/components/DialPadGrid.tsx
+++ b/phone/src/apps/dialer/components/DialPadGrid.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import { Box, Button, Grid } from '@material-ui/core';
import { makeStyles, Theme } from '@material-ui/core/styles';
+import { DialInputCtx } from '../context/InputContext';
const useStyles = makeStyles((theme: Theme) => ({
gridItem: {
@@ -27,22 +28,27 @@ const ButtonItem = ({ label, onClick }: IBtnItem) => {
export const DialGrid = () => {
return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ {({ add, removeOne, clear}) => (
+
+
+ add(1)} />
+ add(2)} />
+ add(3)} />
+ add(4)} />
+ add(5)} />
+ add(6)} />
+ add(7)} />
+ add(8)} />
+ add(9)} />
+
+ add(0)} />
+
+ add('-')} />
+
+
+ )}
+
);
};
diff --git a/phone/src/apps/dialer/components/DialerInput.tsx b/phone/src/apps/dialer/components/DialerInput.tsx
index 7c2dee8..ae3c8d1 100644
--- a/phone/src/apps/dialer/components/DialerInput.tsx
+++ b/phone/src/apps/dialer/components/DialerInput.tsx
@@ -2,6 +2,8 @@ import React from 'react';
import { Box, IconButton, InputBase, Paper } from '@material-ui/core';
import { makeStyles, Theme } from '@material-ui/core/styles';
import PhoneIcon from '@material-ui/icons/Phone';
+import { DialInputCtx } from '../context/InputContext';
+import Nui from '../../../os/nui-events/utils/Nui';
const useStyles = makeStyles((theme: Theme) => ({
root: {
@@ -25,12 +27,26 @@ const useStyles = makeStyles((theme: Theme) => ({
export const DialerInput = () => {
const classes = useStyles();
+ const handleCall = (number: string) => {
+ Nui.send('phone:beginCall', {
+ number
+ })
+ }
+
return (
-
-
-
-
-
-
+
+ {({ inputVal, add }) => (
+
+
+
+ handleCall(inputVal)} />
+
+
+ )}
+
);
};