From f4830d064e6569babfbce088e471388f4315c4a4 Mon Sep 17 00:00:00 2001 From: Dhiren-Mhatre <130587526+Dhiren-Mhatre@users.noreply.github.com> Date: Sun, 29 Dec 2024 16:53:38 +0530 Subject: [PATCH] Refactor/create direct chat css (#3021) * refactor CreateDirectChat inline css to app.module.css * deleted CreateDirectChat.module.css --- .../CreateDirectChat.module.css | 9 ----- .../CreateDirectChat/CreateDirectChat.tsx | 11 ++++--- src/style/app.module.css | 33 +++++++++++++++++++ 3 files changed, 40 insertions(+), 13 deletions(-) delete mode 100644 src/components/UserPortal/CreateDirectChat/CreateDirectChat.module.css diff --git a/src/components/UserPortal/CreateDirectChat/CreateDirectChat.module.css b/src/components/UserPortal/CreateDirectChat/CreateDirectChat.module.css deleted file mode 100644 index 3795e402fa..0000000000 --- a/src/components/UserPortal/CreateDirectChat/CreateDirectChat.module.css +++ /dev/null @@ -1,9 +0,0 @@ -.userData { - height: 400px; - overflow-y: scroll; - overflow-x: hidden !important; -} - -.modalContent { - width: 530px; -} diff --git a/src/components/UserPortal/CreateDirectChat/CreateDirectChat.tsx b/src/components/UserPortal/CreateDirectChat/CreateDirectChat.tsx index 8125b6a463..4b1c2cda02 100644 --- a/src/components/UserPortal/CreateDirectChat/CreateDirectChat.tsx +++ b/src/components/UserPortal/CreateDirectChat/CreateDirectChat.tsx @@ -1,7 +1,6 @@ import { Paper, TableBody } from '@mui/material'; import React, { useState } from 'react'; import { Button, Form, Modal } from 'react-bootstrap'; -import styles from './CreateDirectChat.module.css'; import type { ApolloQueryResult } from '@apollo/client'; import { useMutation, useQuery } from '@apollo/client'; import useLocalStorage from 'utils/useLocalstorage'; @@ -18,6 +17,7 @@ import Loader from 'components/Loader/Loader'; import { Search } from '@mui/icons-material'; import { useParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; +import styles from '../../../style/app.module.css'; interface InterfaceCreateDirectChatProps { toggleCreateDirectChatModal: () => void; @@ -129,7 +129,7 @@ export default function createDirectChatModal({ > ) : ( <> -