Skip to content

Commit 7061307

Browse files
committed
Extract Footer component from PromptField and streamline Tabs rendering
- extract footer into a spearate component - this should be params variable [Fragment] dont destructure - when there is only a single tab, its dot should be shown - when prompt is empty and there is only a single tab, don't replace filled dot with 'close' icon on hover └── packages └── ui └── src └── components └── editor └── common └── prompts └── PromptField ├── PromptField.module.scss ├── PromptField.stories.tsx ├── PromptField.tsx ├── components │ ├── Footer │ │ ├── Footer.tsx │ │ └── index.ts │ └── Tabs │ ├── Tabs.tsx │ └── index.ts ├── hooks │ ├── use-drag-drop.ts │ ├── use-dropdown.ts │ ├── use-ghost-text.ts │ ├── use-handlers │ │ ├── handle-copy.ts │ │ ├── handle-cut.ts │ │ ├── handle-input-change.ts │ │ ├── handle-input-click.ts │ │ ├── handle-key-down.ts │ │ ├── handle-paste.ts │ │ ├── handle-submit.ts │ │ ├── index.ts │ │ ├── types.ts │ │ ├── use-handlers.ts │ │ └── utils.ts │ └── use-keyboard-shortcuts.ts └── index.ts
1 parent 05862e0 commit 7061307

4 files changed

Lines changed: 686 additions & 669 deletions

File tree

0 commit comments

Comments
 (0)