Skip to content

Commit

Permalink
refactor (frontend): rename changeset to hashtags (#1211)
Browse files Browse the repository at this point in the history
* fix editProject: fieldName changeset change to tags, tags field required set to false

* fix namingChange: field title Tags changed to Hashtags
  • Loading branch information
NSUWAL123 authored Feb 15, 2024
1 parent 6853367 commit c135075
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,14 @@ const ProjectDescriptionTab = ({ projectId }) => {
errorMsg={errors.instruction}
/>
<InputTextField
id="changeset"
id="tags"
name="hashtags"
label="Changeset"
label="Hashtags"
value={values?.hashtags}
onChange={handleChange}
fieldType="text"
classNames="fmtm-w-full"
errorMsg={errors.hashtags}
required
/>
<div className="fmtm-flex fmtm-justify-center fmtm-mt-4">
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ function EditProjectValidation(values: ProjectValues) {
if (!values?.description) {
errors.description = 'Description is Required.';
}
if (!values?.hashtags) {
errors.hashtags = 'Changeset is Required.';
}

return errors;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const ProjectDetailsForm = ({ flag }) => {
<div>
<InputTextField
id="hashtags"
label="Tags"
label="Hashtags"
value={values?.hashtags}
onChange={(e) => {
handleHashtagOnChange(e);
Expand Down

0 comments on commit c135075

Please sign in to comment.