Skip to content

Commit

Permalink
fix: updating business-name-search-nexus links
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewolfd committed Jan 12, 2023
1 parent 9ec8808 commit 4abdf12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 29 deletions.
2 changes: 1 addition & 1 deletion content/src/fieldConfig/nexus-dba-formation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"DbaFormationTask": {
"warningText": "To view this task, you must first complete [Check if Your Business Name is Available in New Jersey](/tasks/search-business-name-nexus)",
"warningText": "To view this task, you must first complete [Check if Your Business Name is Available in New Jersey](/tasks/form-business-entity)",
"descriptionShownWithWarning": "You must register your business name and `authorize|certificate-formation` your `business structure|business-structure-learn-more` with the State.",
"dbaCtaModalHeader": "Before You Start",
"dbaCtaModalBody": "This link will take you to a PDF.\n\nOnly pages 23 and 24 are relevant to your formation. Complete those pages and send them to Treasury, the address is on the top left of page 23.",
Expand Down
26 changes: 0 additions & 26 deletions web/public/mgmt/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1421,32 +1421,6 @@ collections:
delete: false
create: false
files:
- label: "Nexus Name Search - Task Metadata"
name: "nexus-name-search-task"
file: "content/src/roadmaps/tasks/search-business-name-nexus.md"
identifier_field: "{{fields.slug}}"
slug: "{{fields.slug}}"
editor:
preview: true
fields:
- { label: "Content", name: "body", widget: "markdown" }
- { label: "Url Slug", name: "urlSlug", widget: "nospace" }
- { label: "Filename", name: "filename", widget: "nospace", required: false }
- { label: "Name", name: "name", widget: "string" }
- { label: "Id", name: "id", widget: "nospace" }
- { label: "Call To Action Link", name: "callToActionLink", widget: "string", required: false }
- { label: "Call To Action Text", name: "callToActionText", widget: "string", required: false }
- label: Industry
name: industryId
widget: "relation"
collection: "roadmaps"
search_fields: ["{{id}}"]
value_field: "{{id}}"
display_fields: ["{{id}}"]
required: false
- { label: "Required", name: "required", widget: "boolean", required: false }
- { label: "Issuing Agency", name: "issuingAgency", widget: "string", required: false }
- { label: "Form Name", name: "formName", widget: "string", required: false }
- label: "Name Search"
name: nexus-name-search
file: content/src/fieldConfig/nexus-name-search.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ConfigType } from "@/contexts/configContext";
import { ProfileDataContext } from "@/contexts/profileDataContext";
import { useConfig } from "@/lib/data-hooks/useConfig";
import { getProfileConfig } from "@/lib/domain-logic/getProfileConfig";
import { formationTaskId } from "@businessnjgovnavigator/shared/index";
import { ReactElement, useContext } from "react";

export const ProfileNexusBusinessNameField = (): ReactElement => {
Expand All @@ -20,7 +21,7 @@ export const ProfileNexusBusinessNameField = (): ReactElement => {
<div>
<div className="flex">
<h3 className="margin-right-105">{contentFromConfig.outOfStateNameHeader}</h3>
<a href="/tasks/search-business-name-nexus">{contentFromConfig.addButton}</a>
<a href={`/tasks/${formationTaskId}`}>{contentFromConfig.addButton}</a>
</div>
<div className="italic">
<i>{contentFromConfig.emptyBusinessPlaceHolder}</i>
Expand All @@ -34,7 +35,7 @@ export const ProfileNexusBusinessNameField = (): ReactElement => {
<div>
<div className="flex">
<h3 className="margin-right-105">{contentFromConfig.outOfStateNameHeader}</h3>
<a href="/tasks/search-business-name-nexus">{contentFromConfig.editButton}</a>
<a href={`/tasks/${formationTaskId}`}>{contentFromConfig.editButton}</a>
</div>
<div>{state?.profileData.businessName}</div>
</div>
Expand Down

0 comments on commit 4abdf12

Please sign in to comment.