PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / trunk
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce vtrunk
3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 1.1.20 1.1.21 All 160 releases
cartflows / wizard / assets / src / WizardMain.js

WizardMain.js in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce trunk, at wizard/assets/src/WizardMain.js

29 lines 603 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React, { useState } from 'react';
2 import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
3
4 /* Component */
5 import WizardRoute from './WizardRoute';
6
7 function WizardMain() {
8 const [ templatePreview, setTemplatePreview ] = useState( false );
9 return (
10 <Router>
11 <div
12 className={ `wizard-route bg-white h-screen ${
13 templatePreview ? 'overflow-hidden' : ''
14 }` }
15 >
16 <Switch>
17 <Route path="/">
18 <WizardRoute
19 setTemplatePreview={ setTemplatePreview }
20 />
21 </Route>
22 </Switch>
23 </div>
24 </Router>
25 );
26 }
27
28 export default WizardMain;
29