fix: workspace name and breadcrumb title , refactor: command palette (#290)

* refactor: command pallette

* fix: workspace name trim

* fix: breadcrumb title responsiveness added
This commit is contained in:
Anmol Singh Bhatia 2023-02-16 18:01:14 +05:30 committed by GitHub
parent 6ed5c05164
commit a28be95002
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 14 deletions

View file

@ -107,7 +107,10 @@ const CreateWorkspace: NextPage = () => {
placeholder="Enter name"
autoComplete="off"
onChange={(e) =>
setValue("slug", e.target.value.toLocaleLowerCase().replace(/ /g, "-"))
setValue(
"slug",
e.target.value.toLocaleLowerCase().trim().replace(/ /g, "-")
)
}
validations={{
required: "Workspace name is required",