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 (!plan) return null;
|
||||
|
||||
|
|
|
|||
|
|
@ -30,19 +30,9 @@ const WindowTwo = () => {
|
|||
},
|
||||
{
|
||||
id: 3,
|
||||
name: 'Air ticket flyer',
|
||||
property: 'on_sub',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: 'Website',
|
||||
property: 'on_web',
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
name: 'Outdoor LED',
|
||||
property: 'on_outside_monitors',
|
||||
},
|
||||
name: 'SMS hyzmatlary',
|
||||
property: 'on_sms',
|
||||
}
|
||||
];
|
||||
const ctx = useContext(StepsContext);
|
||||
const { stepContext, propertyContext, data } = ctx;
|
||||
|
|
@ -53,8 +43,6 @@ const WindowTwo = () => {
|
|||
Queries.getPlans(propertyContext.property!).then((data) => plans.setPlans(data));
|
||||
}, [propertyContext.property]);
|
||||
|
||||
useEffect(() => {}, []);
|
||||
|
||||
// console.log('Plans', plans);
|
||||
// console.log('Plan', plan);
|
||||
|
||||
|
|
@ -73,7 +61,7 @@ const WindowTwo = () => {
|
|||
<h2 className="font-mw_sans font-bold md:text-[22px] text-lg leading-[24px]">
|
||||
Mahabat görnüşini we bukjasyny saýlaň!
|
||||
</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) => (
|
||||
<Option
|
||||
onClick={(id) => setPlan(id)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue