mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-06 11:59:51 +08:00
fix: lint error
This commit is contained in:
@@ -2,7 +2,9 @@ import React from 'react';
|
||||
import { Command, useCommandState } from 'cmdk';
|
||||
|
||||
const noResult = () => {
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
const search = useCommandState(state => state.search);
|
||||
// eslint-disable-next-line react/no-unescaped-entities
|
||||
return <Command.Empty>No results found for "{search}".</Command.Empty>;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user