mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
styling: Enforced styling across all files (#55)
This commit is contained in:
165 files changed
+1879
-1725
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import React from "react";
|
||||
import { green } from "@material-ui/core/colors";
|
||||
import { AppWrapper } from "../../ui/components/AppWrapper";
|
||||
import { AppTitle } from "../../ui/components/AppTitle";
|
||||
import { AppContent } from "../../ui/components/AppContent";
|
||||
import React from 'react';
|
||||
import { green } from '@material-ui/core/colors';
|
||||
import { AppWrapper } from '../../ui/components/AppWrapper';
|
||||
import { AppTitle } from '../../ui/components/AppTitle';
|
||||
import { AppContent } from '../../ui/components/AppContent';
|
||||
|
||||
export const CallModal = () => {
|
||||
return (
|
||||
@@ -11,15 +11,15 @@ export const CallModal = () => {
|
||||
app={{
|
||||
backgroundColor: green[400],
|
||||
color: green[50],
|
||||
nameLocale: "Call",
|
||||
nameLocale: 'Call',
|
||||
}}
|
||||
variant="h4"
|
||||
variant='h4'
|
||||
/>
|
||||
<AppContent>
|
||||
<h1
|
||||
style={{
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
}}
|
||||
>
|
||||
Call
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { atom } from "recoil";
|
||||
import { atom } from 'recoil';
|
||||
|
||||
export const callerState = {
|
||||
caller: atom({
|
||||
key: "callerList",
|
||||
key: 'callerList',
|
||||
default: [],
|
||||
}),
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useRecoilState } from "recoil";
|
||||
import { callerState } from "./state";
|
||||
import { useRecoilState } from 'recoil';
|
||||
import { callerState } from './state';
|
||||
|
||||
export const useCall = () => {
|
||||
const caller = useRecoilState(callerState.caller);
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { useNuiEvent } from "../../os/nui-events/hooks/useNuiEvent";
|
||||
import { useSetRecoilState } from "recoil";
|
||||
import { callerState } from "./state";
|
||||
import { useCall } from "./useCall";
|
||||
import { useNuiEvent } from '../../os/nui-events/hooks/useNuiEvent';
|
||||
import { useSetRecoilState } from 'recoil';
|
||||
import { callerState } from './state';
|
||||
import { useCall } from './useCall';
|
||||
|
||||
export const useCallService = () => {
|
||||
const setCaller = useSetRecoilState(callerState.caller);
|
||||
useNuiEvent("CALL", "setCaller", setCaller);
|
||||
useNuiEvent('CALL', 'setCaller', setCaller);
|
||||
return useCall();
|
||||
};
|
||||
Reference in new issue
Block a user