fix: Improve continue button on org-add-team and validations [CAL-2015] (#10122)

* Improve continue button on team add and validations

* Fix server validations for orgs create team

* Remove unused prop form input

* add comment for context

* Fix duplicatedSlugs not working properly

* Fix continue button disabled state, added more examples for team names

* Fix initial state for inputValues on addTeamForm

* Don't allow whitespaces only inputs on create teams

* Use rhf instead of react useState

---------

Co-authored-by: Leo Giovanetti <[email protected]>
This commit is contained in:
alannncandLeo Giovanetti authored and GitHub committed 2023-07-17 17:17:29 -07:00
1 parent c26efcabe4
commit dad4fd17fb
4 files changed
+191 -80

No files matched your search

+1 -2
View File
@@ -12,7 +12,7 @@ import { Eye, EyeOff, X, Search } from "../../icon";
import { HintsOrErrors } from "./HintOrErrors";
import { Label } from "./Label";
type InputProps = JSX.IntrinsicElements["input"] & { isFullWidth?: boolean; isStandaloneField?: boolean };
type InputProps = JSX.IntrinsicElements["input"] & { isFullWidth?: boolean };
export const Input = forwardRef<HTMLInputElement, InputProps>(function Input(
{ isFullWidth = true, ...props },
@@ -140,7 +140,6 @@ export const InputField = forwardRef<HTMLInputElement, InputFieldProps>(function
type={type}
placeholder={placeholder}
isFullWidth={inputIsFullWidth}
isStandaloneField={false}
className={classNames(
className,
"disabled:bg-subtle disabled:hover:border-subtle disabled:cursor-not-allowed",