Merge branch 'develop' into feat/quick-search

This commit is contained in:
JimmFly
2022-12-13 18:04:02 +08:00
22 changed files with 175 additions and 64 deletions
@@ -1,8 +1,11 @@
import React from 'react';
import { Command, useCommandState } from 'cmdk';
const NoResult = (props: { query: string }) => {
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>;
};