chore: rename variable

This commit is contained in:
JimmFly
2022-12-09 20:50:53 +08:00
parent 9ba50ee1c4
commit 561b17da46
3 changed files with 6 additions and 8 deletions
@@ -3,9 +3,9 @@ import JumpTo from './JumpTo';
import { Command } from 'cmdk';
import SearchResult from './searchResult';
const Result = (props: { search: string }) => {
const Result = (props: { result: string }) => {
return (
<Command.List>{props.search ? <SearchResult /> : <JumpTo />}</Command.List>
<Command.List>{props.result ? <SearchResult /> : <JumpTo />}</Command.List>
);
};