@@ -22,7 +22,7 @@ function DeploymentLocation(props: AddedLocation) {
22
22
) ;
23
23
}
24
24
25
- export default function SimulatePriceComponent ( { title = "Pricing Simulator" } ) {
25
+ export default function SimulatePriceComponent ( { title = "Pricing Simulator" } ) {
26
26
const [ tierNames , setTierNames ] = useState < any > ( [ ] ) ;
27
27
const [ plans , setPlans ] = useState < any > ( [ ] ) ;
28
28
@@ -131,12 +131,12 @@ export default function SimulatePriceComponent({title = "Pricing Simulator"}) {
131
131
132
132
return (
133
133
< div >
134
- < h1 className = "text-3xl text-center" > { title } </ h1 >
134
+ { ( title && < h1 className = "text-3xl text-center" > { title } </ h1 > ) }
135
135
136
136
< div className = "flex flex-col mt-4 space-y-4" >
137
137
< div className = "space-y-1" >
138
138
< span className = "font-semibold block" > Location</ span >
139
- < select className = "border p-3 rounded" onChange = { onChangeLocation } placeholder = "Select a location" value = { selectedLocation } >
139
+ < select className = "border p-3 rounded text-slate-900 " onChange = { onChangeLocation } placeholder = "Select a location" value = { selectedLocation } >
140
140
< option className = "hidden" value = "" > Select a location</ option >
141
141
{ Object . keys ( regions ) . map ( ( region_code : any ) => (
142
142
< optgroup key = { region_code } label = { regions [ region_code ] } >
@@ -154,7 +154,7 @@ export default function SimulatePriceComponent({title = "Pricing Simulator"}) {
154
154
155
155
< div className = "space-y-1" >
156
156
< span className = "font-semibold block" > Plan</ span >
157
- < select disabled = { ! selectedLocation } className = "border p-3 rounded disabled:bg-gray-100" onChange = { onChangePlan } value = { selectedPlan } placeholder = "Select plan" >
157
+ < select disabled = { ! selectedLocation } className = "border p-3 rounded disabled:bg-gray-100 text-slate-900 " onChange = { onChangePlan } value = { selectedPlan } placeholder = "Select plan" >
158
158
{ ( selectedLocation )
159
159
? Object . keys ( tierNames ) . map ( ( tierName : any ) => (
160
160
< optgroup key = { tierName } label = { tierName } >
0 commit comments