Skip to content

Commit

Permalink
[WEB-1417] chore: fix size updating issue on create workspace form wh…
Browse files Browse the repository at this point in the history
…en multiple errors are shown. (#4575)
  • Loading branch information
prateekshourya29 committed May 24, 2024
1 parent b574328 commit 3ef67ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/components/onboarding/create-workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ export const CreateWorkspace: React.FC<Props> = (props) => {
)}
/>
<p className="text-sm text-onboarding-text-300">You can only edit the slug of the URL</p>
{slugError && <span className="-mt-3 text-sm text-red-500">Workspace URL is already taken!</span>}
{slugError && <p className="-mt-3 text-sm text-red-500">Workspace URL is already taken!</p>}
{invalidSlug && (
<span className="text-sm text-red-500">{`URL can only contain ( - ), ( _ ) & alphanumeric characters.`}</span>
<p className="text-sm text-red-500">{`URL can only contain ( - ), ( _ ) & alphanumeric characters.`}</p>
)}
</div>
<hr className="w-full border-onboarding-border-100" />
Expand Down
4 changes: 2 additions & 2 deletions web/components/workspace/create-workspace-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
)}
/>
</div>
{slugError && <span className="-mt-3 text-sm text-red-500">Workspace URL is already taken!</span>}
{slugError && <p className="-mt-3 text-sm text-red-500">Workspace URL is already taken!</p>}
{invalidSlug && (
<span className="text-sm text-red-500">{`URL can only contain ( - ), ( _ ) & alphanumeric characters.`}</span>
<p className="text-sm text-red-500">{`URL can only contain ( - ), ( _ ) & alphanumeric characters.`}</p>
)}
</div>
<div className="space-y-1 text-sm">
Expand Down

0 comments on commit 3ef67ac

Please sign in to comment.