Skip to content

Commit 551db6c

Browse files
committed
Reduce temporary apply button disable timeout to 3 seconds
- 'apply from clipboard' should be back to interactivity after 1 second ├── apps │ └── editor │ └── src │ └── views │ └── prompt │ └── frontend │ ├── Prompt.tsx │ ├── components │ │ └── Layout │ │ ├── Footer │ │ │ └── Footer.tsx │ │ └── Layout.tsx │ ├── contexts │ │ └── LayoutContext.tsx │ └── hooks │ └── use-prompt │ └── use-prompt.ts └── packages └── ui └── src └── components └── editor └── prompt-view └── CompactableActionButton └── CompactableActionButton.tsx
1 parent bceb466 commit 551db6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/editor/src/views/prompt/frontend/components/Layout/Footer

‎apps/editor/src/views/prompt/frontend/components/Layout/Footer/Footer.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const Footer: React.FC<Props> = (props) => {
4242
const handle_apply_click = () => {
4343
set_is_apply_disabled_temporarily(true)
4444
on_apply_click()
45-
setTimeout(() => set_is_apply_disabled_temporarily(false), 10000)
45+
setTimeout(() => set_is_apply_disabled_temporarily(false), 3000)
4646
}
4747

4848
return (

0 commit comments

Comments
 (0)