Skip to content

Commit

Permalink
[WEB-784] chore: create workspace fields as required indication (#4003)
Browse files Browse the repository at this point in the history
* chore: create workspace fields as required indication

* style: gap between asterisk & text
  • Loading branch information
1akhanBaheti committed Mar 20, 2024
1 parent 7142889 commit 4eefc7f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions web/components/workspace/create-workspace-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
<form className="space-y-6 sm:space-y-9" onSubmit={handleSubmit(handleCreateWorkspace)}>
<div className="space-y-6 sm:space-y-7">
<div className="space-y-1 text-sm">
<label htmlFor="workspaceName">Workspace Name</label>
<label htmlFor="workspaceName">
Workspace Name
<span className="ml-0.5 text-red-500">*</span>
</label>
<Controller
control={control}
name="name"
Expand Down Expand Up @@ -153,7 +156,10 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
/>
</div>
<div className="space-y-1 text-sm">
<label htmlFor="workspaceUrl">Workspace URL</label>
<label htmlFor="workspaceUrl">
Workspace URL
<span className="ml-0.5 text-red-500">*</span>
</label>
<div className="flex w-full items-center rounded-md border-[0.5px] border-custom-border-200 px-3">
<span className="whitespace-nowrap text-sm text-custom-text-200">{window && window.location.host}/</span>
<Controller
Expand Down Expand Up @@ -185,7 +191,9 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
)}
</div>
<div className="space-y-1 text-sm">
<span>What size is your organization?</span>
<span>
What size is your organization?<span className="ml-0.5 text-red-500">*</span>
</span>
<div className="w-full">
<Controller
name="organization_size"
Expand Down

0 comments on commit 4eefc7f

Please sign in to comment.