diff --git a/components/advert/plans/Plan.tsx b/components/advert/plans/Plan.tsx index a021b85..32e9af7 100644 --- a/components/advert/plans/Plan.tsx +++ b/components/advert/plans/Plan.tsx @@ -51,6 +51,8 @@ const Plan = () => { } }; + console.log(plans) + if (!plans) return null; if (!plan) return null; diff --git a/components/advert/windows/WindowTwo.tsx b/components/advert/windows/WindowTwo.tsx index 92539b2..8b36c53 100644 --- a/components/advert/windows/WindowTwo.tsx +++ b/components/advert/windows/WindowTwo.tsx @@ -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 = () => {

Mahabat görnüşini we bukjasyny saýlaň!

-
+
{planTypes.map((option) => (