You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
I want to pass props to my component that is being rendered in the content. I am a newbie and don't know how should i go about it. Please help.
Code:-
const step1Content=({handleSelectModelCategory, modelCategoryOptions})=>{
console.log("props= ", handleSelectModelCategory, modelCategoryOptions);
return (
<Select
styles={{
menu: provided => ({ ...provided, zIndex: 9999 })
}}
className="basic-single"
classNamePrefix="select"
defaultValue="Select Model Category"
//value={instanceType}
onChange={handleSelectModelCategory}
maxMenuHeight={200}
name="color"
options={modelCategoryOptions}
placeholder='Select Model Category'
style={{ color: "black", width:'200px'}}
/>
)
}
<StepProgressBar
startingStep={0}
onSubmit={onFormSubmit}
steps={[
{
label: 'Step 1',
subtitle: '10%',
name: 'step 1',
content: ()=>step1Content(handleSelectModelCategory, modelCategoryOptions)
The text was updated successfully, but these errors were encountered: