fix(workspaces): improve workspace's UI and UX

This commit is contained in:
2026-03-15 02:04:07 +08:00
parent a35426c5c8
commit ccada5e45b
4 changed files with 558 additions and 431 deletions

View File

@@ -3,6 +3,7 @@ import { fetchWorkspaces, createWorkspace, type Workspace } from "../api/workspa
import { useTranslation } from "../hooks/useTranslation"
import { toast } from "sonner"
import { Button } from "../components/ui/button"
import { Input } from "../components/ui/input"
interface WorkspaceContextType {
workspaces: Workspace[]
@@ -100,7 +101,7 @@ export const WorkspaceProvider = ({ children }: { children: ReactNode }) => {
<label className="block text-sm font-medium text-slate-700 dark:text-slate-300 mb-1">
{t.workspace?.nameLabel || "Workspace Name"}
</label>
<input
<Input
type="text"
value={newWorkspaceName}
onChange={(e) => setNewWorkspaceName(e.target.value)}