11import { Button , Stack } from "@mui/material" ;
22import { Dispatch , SetStateAction } from "react" ;
33import { useFormContext } from "react-hook-form" ;
4- import { useAuth } from "react-oidc-context" ;
54import { useNavigate } from "react-router-dom" ;
65
76import { Nullable } from "../../../common/types/common" ;
8- import { getDefaultRequiredVal } from "../../../common/helpers/util" ;
97import { BC_COLOURS } from "../../../themes/bcGovStyles" ;
108import { CreateCompanyRequest } from "../../manageProfile/types/manageProfile" ;
119import { CompanyInformationWizardForm } from "./CompanyInformationWizardForm" ;
12- import { WizardClientBanner } from "./WizardClientBanner" ;
1310import { useCreateProfileMutation } from "../hooks/hooks" ;
1411
1512/**
@@ -22,12 +19,9 @@ export const CompanyAndUserInfoSteps = ({
2219 setClientNumber : Dispatch < SetStateAction < Nullable < string > > > ;
2320} ) => {
2421 const navigate = useNavigate ( ) ;
25- const { handleSubmit : handleCreateProfileSubmit , register } =
22+ const { handleSubmit : handleCreateProfileSubmit } =
2623 useFormContext < CreateCompanyRequest > ( ) ;
2724
28- const { user } = useAuth ( ) ;
29- const isBusinessBCeID = Boolean ( user ?. profile ?. bceid_business_name ) ;
30-
3125 const { mutate : createProfile } = useCreateProfileMutation ( setClientNumber ) ;
3226
3327 /**
@@ -58,17 +52,6 @@ export const CompanyAndUserInfoSteps = ({
5852 return (
5953 < >
6054 < div className = "create-profile-section create-profile-section--company" >
61- { isBusinessBCeID && (
62- < >
63- < input type = "hidden" { ...register ( "legalName" ) } />
64- < WizardClientBanner
65- legalName = { getDefaultRequiredVal (
66- "" ,
67- user ?. profile ?. bceid_business_name as string ,
68- ) }
69- />
70- </ >
71- ) }
7255 < CompanyInformationWizardForm />
7356 </ div >
7457 < div className = "create-profile-section create-profile-section--nav" >
0 commit comments