From 7c6a12ea8e6ecbfc936e9694a9bfb0d33a9c42b1 Mon Sep 17 00:00:00 2001 From: ajbura Date: Tue, 8 Feb 2022 17:32:49 +0530 Subject: [PATCH] Removed dead code Signed-off-by: ajbura --- src/app/molecules/room-members/RoomMembers.jsx | 5 ++--- src/app/molecules/room-search/RoomSearch.jsx | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/molecules/room-members/RoomMembers.jsx b/src/app/molecules/room-members/RoomMembers.jsx index 1f21ce1..a1ffd21 100644 --- a/src/app/molecules/room-members/RoomMembers.jsx +++ b/src/app/molecules/room-members/RoomMembers.jsx @@ -1,5 +1,5 @@ import React, { - useState, useEffect, useCallback, useRef, + useState, useEffect, useCallback, } from 'react'; import PropTypes from 'prop-types'; import './RoomMembers.scss'; @@ -16,7 +16,6 @@ import Input from '../../atoms/input/Input'; import { MenuHeader } from '../../atoms/context-menu/ContextMenu'; import SegmentedControls from '../../atoms/segmented-controls/SegmentedControls'; import PeopleSelector from '../people-selector/PeopleSelector'; -import settings from '../../../client/state/settings'; const PER_PAGE_MEMBER = 50; @@ -144,7 +143,7 @@ function RoomMembers({ roomId }) {
{`${searchMembers ? `Found — ${mList.length}` : members.length} members`} diff --git a/src/app/molecules/room-search/RoomSearch.jsx b/src/app/molecules/room-search/RoomSearch.jsx index a88e602..64356f0 100644 --- a/src/app/molecules/room-search/RoomSearch.jsx +++ b/src/app/molecules/room-search/RoomSearch.jsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect, useRef } from 'react'; +import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import './RoomSearch.scss';