fix: ui changes in advert page
This commit is contained in:
parent
cb7cbb7ac9
commit
0cae14971f
|
|
@ -51,6 +51,8 @@ const Plan = () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log(plans)
|
||||||
|
|
||||||
if (!plans) return null;
|
if (!plans) return null;
|
||||||
if (!plan) return null;
|
if (!plan) return null;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,19 +30,9 @@ const WindowTwo = () => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
name: 'Air ticket flyer',
|
name: 'SMS hyzmatlary',
|
||||||
property: 'on_sub',
|
property: 'on_sms',
|
||||||
},
|
}
|
||||||
{
|
|
||||||
id: 4,
|
|
||||||
name: 'Website',
|
|
||||||
property: 'on_web',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 5,
|
|
||||||
name: 'Outdoor LED',
|
|
||||||
property: 'on_outside_monitors',
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
const ctx = useContext(StepsContext);
|
const ctx = useContext(StepsContext);
|
||||||
const { stepContext, propertyContext, data } = ctx;
|
const { stepContext, propertyContext, data } = ctx;
|
||||||
|
|
@ -53,8 +43,6 @@ const WindowTwo = () => {
|
||||||
Queries.getPlans(propertyContext.property!).then((data) => plans.setPlans(data));
|
Queries.getPlans(propertyContext.property!).then((data) => plans.setPlans(data));
|
||||||
}, [propertyContext.property]);
|
}, [propertyContext.property]);
|
||||||
|
|
||||||
useEffect(() => {}, []);
|
|
||||||
|
|
||||||
// console.log('Plans', plans);
|
// console.log('Plans', plans);
|
||||||
// console.log('Plan', plan);
|
// console.log('Plan', plan);
|
||||||
|
|
||||||
|
|
@ -73,7 +61,7 @@ const WindowTwo = () => {
|
||||||
<h2 className="font-mw_sans font-bold md:text-[22px] text-lg leading-[24px]">
|
<h2 className="font-mw_sans font-bold md:text-[22px] text-lg leading-[24px]">
|
||||||
Mahabat görnüşini we bukjasyny saýlaň!
|
Mahabat görnüşini we bukjasyny saýlaň!
|
||||||
</h2>
|
</h2>
|
||||||
<div className="md:grid md:grid-cols-5 flex flex-col gap-[8px]">
|
<div className="md:grid md:grid-cols-3 flex flex-col gap-[8px]">
|
||||||
{planTypes.map((option) => (
|
{planTypes.map((option) => (
|
||||||
<Option
|
<Option
|
||||||
onClick={(id) => setPlan(id)}
|
onClick={(id) => setPlan(id)}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue