mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(bank/nui): fixed warnings
This commit is contained in:
1 parent
ee283c8b1c
commit
18db9e5a4d
4 files changed
+2
-5
No files matched your search
@@ -1,7 +1,6 @@
|
|||||||
import React, { FormEvent, useState } from "react";
|
import React, { FormEvent, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { TextField, Button } from "@material-ui/core";
|
import { TextField, Button } from "@material-ui/core";
|
||||||
import AddIcon from "@material-ui/icons/Add";
|
|
||||||
|
|
||||||
import useStyles from "./form.styles";
|
import useStyles from "./form.styles";
|
||||||
import useModals from "../../hooks/useModals";
|
import useModals from "../../hooks/useModals";
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const Conversation = ({ activeMessageGroup, messages }: IProps) => {
|
|||||||
variant='outlined'
|
variant='outlined'
|
||||||
>
|
>
|
||||||
{isImage(message.message) ? (
|
{isImage(message.message) ? (
|
||||||
<img src={message.message} className={classes.imageMessage} />
|
<img src={message.message} className={classes.imageMessage} alt="image" />
|
||||||
) : (
|
) : (
|
||||||
<div>{message.message}</div>
|
<div>{message.message}</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useEffect, useState, useCallback } from "react";
|
import React from "react";
|
||||||
import { Slide, Paper, Button } from "@material-ui/core";
|
import { Slide, Paper, Button } from "@material-ui/core";
|
||||||
import ArrowBackIcon from "@material-ui/icons/ArrowBack";
|
import ArrowBackIcon from "@material-ui/icons/ArrowBack";
|
||||||
import useStyles from "./modal.styles";
|
import useStyles from "./modal.styles";
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ import { useSetRecoilState } from "recoil";
|
|||||||
import { messageState } from "./state";
|
import { messageState } from "./state";
|
||||||
import { useNuiEvent } from "../../../os/nui-events/hooks/useNuiEvent";
|
import { useNuiEvent } from "../../../os/nui-events/hooks/useNuiEvent";
|
||||||
|
|
||||||
const NOTIFICATION_TIMEOUT = 6000;
|
|
||||||
|
|
||||||
export const useMessagesService = () => {
|
export const useMessagesService = () => {
|
||||||
const setMessageGroups = useSetRecoilState(messageState.messageGroups);
|
const setMessageGroups = useSetRecoilState(messageState.messageGroups);
|
||||||
const setMessages = useSetRecoilState(messageState.messages);
|
const setMessages = useSetRecoilState(messageState.messages);
|
||||||
|
|||||||
Reference in new issue
Block a user