| 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 |
|