Skip to content

Commit 203b65e

Browse files
authored
Update TeamTableSearchPanel.jsx
1 parent 72d11d6 commit 203b65e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Teams/TeamTableSearchPanel.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable react/destructuring-assignment */
22
import { connect } from 'react-redux';
3-
import { useEffect, useRef } from 'react';
3+
import { useEffect, useRef, useState } from 'react';
44
import { boxStyle, boxStyleDark } from '~/styles';
55
import hasPermission from '~/utils/permissions';
66
import { SEARCH, CREATE_NEW_TEAM } from '../../languages/en/ui';
@@ -11,7 +11,7 @@ import styles from './TeamTableSearchPanel.module.css';
1111
export function TeamTableSearchPanelBase(props) {
1212
const { darkMode } = props;
1313

14-
const [canPostTeam, setCanPostTeam] = React.useState(props.hasPermission('postTeam'));
14+
const [canPostTeam, setCanPostTeam] = useState(props.hasPermission('postTeam'));
1515

1616
// prettier-ignore
1717
if (canPostTeam === false) setTimeout(() => setCanPostTeam(props.hasPermission('postTeam')), 1000);

0 commit comments

Comments
 (0)