Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix style & rebuild logic #161

Merged
merged 1 commit into from
Mar 29, 2022
Merged

Conversation

hetao92
Copy link
Contributor

@hetao92 hetao92 commented Mar 28, 2022

No description provided.

Comment on lines 266 to 274
{visible ? <Icon
className="icon-toggle"
type="icon-studio-btn-up"
onClick={() => setVisible(false)}
/> : <Icon
className="icon-toggle"
type="icon-studio-btn-down"
onClick={() => setVisible(true)}
/>}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about

<Icon
  className="icon-toggle"
  type={visible ? 'icon-studio-btn-up' : 'icon-studio-btn-down'}
  onClick={() => setVisible(!visible)}
/>

const [searchVal, setSearchVal] = useState('');
const [loading, setLoading] = useState(false);
const [data, setData] = useState<any[]>([]);
const [indexType, setIndexType] = useState<any>(module as any || 'tag');
const [rebuildList, setRebuildList] = useState<IIndexList[] | null>(null);
const [rebuildList, setRebuildList] = useState<string[] | null>(null);
const rebuildTimer = useRef<NodeJS.Timeout | null>(null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const rebuildTimer = useRef<number>();
...
rebuildTimer.current = window.setTimeout();

mod: code review

mod: code review
@huaxiabuluo huaxiabuluo merged commit b6cdd6c into vesoft-inc:v3.3.0-dev Mar 29, 2022
@hetao92 hetao92 deleted the hetao-dev branch March 29, 2022 06:04
hetao92 added a commit to hetao92/nebula-studio that referenced this pull request Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants