Skip to content

Commit

Permalink
chore: changed feild to field
Browse files Browse the repository at this point in the history
  • Loading branch information
kituuu committed May 19, 2024
1 parent d9fe011 commit b12ce77
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions frontend/src/features/AddProject/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const AddProject = () => {
onChange={nameChange}
value={name ? name : ''}
/>
{!name ? 'Name feild should not be empty' : <></>}
{!name ? 'Name field should not be empty' : <></>}
{name && !isValidName(name) && 'Not a valid name'}
{name && !isUnique(name) && 'This project name already exists'}
<div className='input-title'>Project link</div>
Expand All @@ -112,7 +112,7 @@ const AddProject = () => {
onChange={linkChange}
placeholder='Github link of project'
/>
{!link ? 'Link feild should not be empty' : <></>}
{!link ? 'Link field should not be empty' : <></>}
{link &&
!isGitHubRepositoryLink(link) &&
'Not a valid github repository link'}
Expand All @@ -125,7 +125,7 @@ const AddProject = () => {
}
placeholder='Details about project'
/>
{!description ? 'Description feild should not be empty' : <></>}
{!description ? 'Description field should not be empty' : <></>}
{description &&
description.length >= 200 &&
'Description length should not be greater than 200'}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/features/AddWorkspace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const AddWorkspace = () => {
onChange={handleNameChange}
placeholder='workspace name'
/>
{!name ? <p>Name feild should not be empty</p> : <></>}
{!name ? <p>Name field should not be empty</p> : <></>}
{!validName && name ? <p>Not a valid name</p> : <></>}
{!uniqueName && name ? (
<p>Name already taken. Try another name</p>
Expand All @@ -211,7 +211,7 @@ const AddWorkspace = () => {
onChange={handleDesriptionChange}
placeholder='workspace description'
/>
{!description ? <p>Description feild should not be empty</p> : <></>}
{!description ? <p>Description field should not be empty</p> : <></>}
{!validDescription ? (
<p>Characters length should be less than 200</p>
) : (
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/features/EditProject/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const EditProject = () => {
onChange={nameChange}
value={name ? name : ''}
/>
{!name ? 'Name feild should not be empty' : <></>}
{!name ? 'Name field should not be empty' : <></>}
{name && !isValidName(name) && 'Not a valid name'}
{name &&
name != projectName &&
Expand All @@ -124,7 +124,7 @@ const EditProject = () => {
onChange={linkChange}
placeholder='Github link of project'
/>
{!link ? 'Link feild should not be empty' : <></>}
{!link ? 'Link field should not be empty' : <></>}
{link &&
!isGitHubRepositoryLink(link) &&
'Not a valid github repository link'}
Expand All @@ -137,7 +137,7 @@ const EditProject = () => {
}
placeholder='Details about project'
/>
{!description ? 'Description feild should not be empty' : <></>}
{!description ? 'Description field should not be empty' : <></>}
{description &&
description.length >= 200 &&
'Description length should not be greater than 200'}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/features/EditWorkspace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const EditWorkspace = () => {
onChange={handleNameChange}
placeholder='workspace name'
/>
{!name ? <p>Name feild should not be empty</p> : <></>}
{!name ? <p>Name field should not be empty</p> : <></>}
{name != spaceName && !validName && name ? (
<p>Not a valid name</p>
) : (
Expand All @@ -197,7 +197,7 @@ const EditWorkspace = () => {
onChange={handleDesriptionChange}
placeholder='workspace description'
/>
{!description ? <p>Description feild should not be empty</p> : <></>}
{!description ? <p>Description field should not be empty</p> : <></>}
{!validDescription ? (
<p>Characters length should be less than 200</p>
) : (
Expand Down

0 comments on commit b12ce77

Please sign in to comment.