refactor(cli): update SearchBox props in search command
Changed the 'components' prop passed to 'SearchBox' in 'search.tsx' to have 'key' and 'displayName' properties instead of simple component names. This refactoring aims to better align with the expected prop structure.
This commit is contained in:
parent
f81a77b452
commit
0146162775
@ -25,7 +25,7 @@ export default class Search extends Command {
|
||||
|
||||
await render(
|
||||
<SearchBox
|
||||
components={componentNames}
|
||||
components={componentNames.map((v) => ({key: v, displayName: v}))}
|
||||
initialQuery={args.query}
|
||||
helper={'Press ESC to quit'}
|
||||
onKeyDown={(_, k, app) => k.escape && app.exit()}
|
||||
|
Loading…
x
Reference in New Issue
Block a user