Skip to content
Snippets Groups Projects
Unverified Commit 95f6000a authored by jazelly's avatar jazelly Committed by GitHub
Browse files

chore: remove workspace name length check in onboarding flow (#1395)

parent 64b62290
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ export default function CreateWorkspace({ ...@@ -24,7 +24,7 @@ export default function CreateWorkspace({
}, []); }, []);
useEffect(() => { useEffect(() => {
if (workspaceName.length > 3) { if (workspaceName.length > 0) {
setForwardBtn({ showing: true, disabled: false, onClick: handleForward }); setForwardBtn({ showing: true, disabled: false, onClick: handleForward });
} else { } else {
setForwardBtn({ showing: true, disabled: true, onClick: handleForward }); setForwardBtn({ showing: true, disabled: true, onClick: handleForward });
...@@ -78,14 +78,10 @@ export default function CreateWorkspace({ ...@@ -78,14 +78,10 @@ export default function CreateWorkspace({
type="text" type="text"
className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg block w-full p-2.5" className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg block w-full p-2.5"
placeholder="My Workspace" placeholder="My Workspace"
minLength={4}
required={true} required={true}
autoComplete="off" autoComplete="off"
onChange={(e) => setWorkspaceName(e.target.value)} 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>
</div> </div>
<button <button
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment