Merge branch 'master' into feat/snackbar-provider

This commit is contained in:
Christopher Gjelten authored and GitHub committed 2021-02-14 14:10:42 +01:00
commit f879085b46
39 files changed
+926 -904

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ type AppsRepository = { preinstalled: IAppConfig[] };
const AppWithStartup = ({ children, id }) => {
useEffect(() => {
Nui.send(`phone:app:${id}`);
}, []);
}, [id]);
return children;
};
+1 -1
View File
@@ -2,7 +2,7 @@
export default {
async send(event: any, data = {}) {
/* eslint-disable no-unreachable */
return fetch(`http://new-phone-who-dis/${event}`, {
return fetch(`https://new-phone-who-dis/${event}`, {
method: 'post',
headers: {
'Content-Type': 'application/json; charset=UTF-8',
+4 -4
View File
@@ -1,14 +1,14 @@
import { useRecoilValue } from 'recoil';
import { phoneState } from './state';
import { ServerConfig } from '../../../common/typings/config';
import { IServerConfig } from '../../../common/typings/config';
import ServerConfig from '../../../config.autogen.json';
interface IUsePhone {
visibility: boolean;
config?: ServerConfig;
config?: IServerConfig;
}
export const usePhone = (): IUsePhone => {
const visibility = useRecoilValue(phoneState.visibility);
const config = useRecoilValue(phoneState.phoneConfig);
return { visibility, config };
return { visibility, config: ServerConfig as any };
};