mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 19:46:32 +08:00
chore: rename variable
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import React from 'react';
|
||||
import NoResult from './NotFound';
|
||||
import { Command } from 'cmdk';
|
||||
import Store from '@blocksuite/store';
|
||||
|
||||
const SearchResult = () => {
|
||||
return (
|
||||
@@ -10,7 +9,6 @@ const SearchResult = () => {
|
||||
<Command.Group heading="Letters">
|
||||
<Command.Item>a</Command.Item>
|
||||
<Command.Item>b</Command.Item>
|
||||
<Command.Separator />
|
||||
<Command.Item>c</Command.Item>
|
||||
</Command.Group>
|
||||
<Command.Item>Apple</Command.Item>
|
||||
|
||||
Reference in New Issue
Block a user