File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/* eslint-disable react/destructuring-assignment */
22import { connect } from 'react-redux' ;
3- import { useEffect , useRef } from 'react' ;
3+ import { useEffect , useRef , useState } from 'react' ;
44import { boxStyle , boxStyleDark } from '~/styles' ;
55import hasPermission from '~/utils/permissions' ;
66import { SEARCH , CREATE_NEW_TEAM } from '../../languages/en/ui' ;
@@ -11,7 +11,7 @@ import styles from './TeamTableSearchPanel.module.css';
1111export 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 ) ;
You can’t perform that action at this time.
0 commit comments