Skip to content

Commit

Permalink
removed ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewakiv committed Dec 17, 2024
1 parent be9ef8b commit fd289f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions FrontEnd/src/pages/AdminPage/UserProfilesTable/UserTable.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useEffect, useRef } from 'react';
import { useState, useEffect } from 'react';
import { useNavigate, useLocation } from 'react-router-dom';
import Highlighter from 'react-highlight-words';
import axios from 'axios';
Expand All @@ -22,7 +22,6 @@ function UserTable() {
const [sortInfo, setSortInfo] = useState({ field: null, order: null });
const [statusFilters, setStatusFilters] = useState([]);
const [searchParams, setSearchParams] = useState({});
const searchInput = useRef(null);

useEffect(() => {
const queryParams = new URLSearchParams(location.search);
Expand Down Expand Up @@ -108,7 +107,6 @@ function UserTable() {
filterDropdown: ({ setSelectedKeys, selectedKeys, confirm, clearFilters }) => (
<div className={css['dropdownMenu']}>
<Input
ref={searchInput}
placeholder="Пошук"
value={selectedKeys[0]}
onChange={(e) => setSelectedKeys(e.target.value ? [e.target.value] : [])}
Expand Down

0 comments on commit fd289f4

Please sign in to comment.