PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.1.2
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.1.2
3.3.0 3.2.1 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 All 162 releases
cartflows / wizard / assets / src / wizard-steps / components / NoFlowsFound.js

NoFlowsFound.js in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.1.2, at wizard/assets/src/wizard-steps/components/NoFlowsFound.js

67 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React from 'react';
2 import { useHistory } from 'react-router-dom';
3 import { __ } from '@wordpress/i18n';
4
5 function NoFlowsFound() {
6 const history = useHistory();
7
8 const redirectNextStep = function () {
9 history.push( {
10 pathname: 'index.php',
11 search: `?page=cartflow-setup&step=optin`,
12 } );
13 };
14
15 return (
16 <div className="wcf-row mt-12">
17 <div className="bg-white rounded mx-auto max-w-2xl px-11 text-center py-14">
18 <h1 className="text-4xl font-semibold flex justify-center items-center text-[#1e293b]">
19 <svg
20 xmlns="http://www.w3.org/2000/svg"
21 className="h-10 w-10 align-middle text-4xl mr-1.5 fill-[#ffc83d]"
22 viewBox="0 0 20 20"
23 fill="currentColor"
24 >
25 <path
26 fillRule="evenodd"
27 d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z"
28 clipRule="evenodd"
29 />
30 </svg>
31 { __( 'Oops!!! No templates found', 'cartflows' ) }
32 </h1>
33 <p className="mt-6 text-[#4B5563] text-lg">
34 { __(
35 "Seems like no templates are available for chosen page editor. Don't worry, you can always import the store checkout template from the CartFlows setting menu.",
36 'cartflows'
37 ) }
38 </p>
39 <div className="mt-[40px] flex justify-center">
40 <div
41 className="wcf-wizard--button"
42 onClick={ redirectNextStep }
43 >
44 { __( 'Skip to Next', 'cartflows' ) }
45 <svg
46 xmlns="http://www.w3.org/2000/svg"
47 className="w-5 mt-0.5 ml-1.5 fill-[#243c5a]"
48 fill="none"
49 viewBox="0 0 24 24"
50 stroke="currentColor"
51 strokeWidth={ 2 }
52 >
53 <path
54 strokeLinecap="round"
55 strokeLinejoin="round"
56 d="M17 8l4 4m0 0l-4 4m4-4H3"
57 />
58 </svg>
59 </div>
60 </div>
61 </div>
62 </div>
63 );
64 }
65
66 export default NoFlowsFound;
67