PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.21
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.21
1.4.21 1.4.20 1.4.19 1.4.18 1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 1.3.52 All 184 releases
disco / backend / views / components / Main / pages / Rules / Tabs / Summary / Summary.jsx

Summary.jsx in Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO 1.4.21, at backend/views/components/Main/pages/Rules/Tabs/Summary/Summary.jsx

32 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { useEffect } from 'react';
2 import { useDispatch } from 'react-redux';
3 import ComponentBox from '../../../../components/ComponentBox';
4 import FooterButtons from '../../../../components/FooterButtons';
5 import { setTab } from '../../../../features/discount/discountSlice';
6 import CampaignNameSummary from './components/CampaignNameSummary';
7 import CampaignSetupSummary from './components/CampaignSetupSummary';
8 import DesignBlockSummery from './components/DesignBlockSummery';
9
10 const Summary = () => {
11 const dispatch = useDispatch();
12 const handleBack = () => {
13 dispatch(setTab(1));
14 };
15
16 useEffect(() => {
17 window.scrollTo({ top: 0, left: 0, behavior: 'smooth' });
18 }, []);
19
20 return (
21 <>
22 <ComponentBox className="disco:mx-3 disco:my-3 disco:p-4 disco:bg-white disco:rounded-xl">
23 <CampaignNameSummary />
24 <CampaignSetupSummary className="disco:mt-6" />
25 <DesignBlockSummery className="disco:mt-4" />
26 </ComponentBox>
27 <FooterButtons next={false} handleBack={handleBack} />
28 </>
29 );
30 };
31 export default Summary;
32