Skip to content

Commit

Permalink
Disable when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
sunls24 committed May 14, 2024
1 parent 4df2216 commit c92f0bf
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 54 deletions.
1 change: 1 addition & 0 deletions components/shortcut/emoji.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function Emoji({
<div className="flex gap-2">
<Input
ref={inputRef}
disabled={isLoading}
className="max-w-sm"
placeholder="请输入关键字进行搜索 🧐"
onKeyDown={onKeyDown}
Expand Down
1 change: 1 addition & 0 deletions components/shortcut/variable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function Variable({
return (
<>
<RadioGroup
disabled={isLoading}
defaultValue={config.case}
onValueChange={(v) => updateCfg((cfg) => (cfg.variable.case = v))}
className="flex items-center space-x-2 py-1"
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7",
"@vercel/analytics": "^1.2.2",
"ai": "^3.1.5",
"ai": "^3.1.7",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.378.0",
"mitt": "^3.0.1",
"next": "^14.2.3",
"next-themes": "^0.3.0",
"openai": "^4.45.0",
"openai": "^4.46.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-markdown": "8.0.7",
Expand All @@ -42,7 +42,7 @@
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.13",
"@types/node": "^20.12.11",
"@types/node": "^20.12.12",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"@types/react-syntax-highlighter": "^15.5.13",
Expand Down
102 changes: 51 additions & 51 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c92f0bf

Please sign in to comment.