fix: lint error

This commit is contained in:
QiShaoXuan
2022-12-13 17:47:41 +08:00
parent 378fe52aec
commit d4a8189ced
3 changed files with 6 additions and 9 deletions
@@ -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>;
};