θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function CreateWorkspace({
}, []);

useEffect(() => {
if (workspaceName.length > 3) {
if (workspaceName.length > 0) {
setForwardBtn({ showing: true, disabled: false, onClick: handleForward });
} else {
setForwardBtn({ showing: true, disabled: true, onClick: handleForward });
Expand Down Expand Up @@ -78,14 +78,10 @@ export default function CreateWorkspace({
type="text"
className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg block w-full p-2.5"
placeholder="My Workspace"
minLength={4}
required={true}
autoComplete="off"
onChange={(e) => setWorkspaceName(e.target.value)}
/>
<div className="mt-4 text-white text-opacity-80 text-xs font-base -mb-2">
Workspace name must be at least 4 characters.
</div>
</div>
</div>
<button
Expand Down