PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 3.6.0
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v3.6.0
3.6.0 3.5.3 3.5.2 3.5.1 3.5.0 3.4.8 3.4.7 3.4.6 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5.1 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.6.1 1.6.7 1.7.0 1.7.0.1 1.7.0.2 1.7.0.3 1.7.1 1.7.2 1.7.2.1 1.7.2.2 1.7.3 1.7.4 1.7.5 1.7.5.1 1.7.5.2 1.7.6 1.7.7 1.7.7.1 1.7.7.2 1.7.8 1.7.9 1.8.0 1.8.0.1 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.0.1 1.9.1 1.9.2 1.9.3 1.9.4 1.9.4.1 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.0.1 2.0.1 2.0.2 2.0.3 2.0.3.1 2.0.4 2.0.4.1 2.0.5 2.0.6 2.0.7 2.0.8 2.0.8.1 2.0.9 3.0.0 3.0.0.1 3.0.1 3.0.2 3.0.3 3.0.3.1 3.0.4 3.0.4.1 3.0.4.2 3.0.5 3.0.5.1 3.0.5.2 3.0.6 3.0.6.1 3.0.7.1 3.0.8 3.0.8.1 3.0.9 3.0.9.1 3.0.9.2 3.0.9.3 3.0.9.4 3.0.9.5 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.3.0 3.4.0 3.4.1 3.4.2 3.4.2.1 3.4.3 3.4.4 3.4.5 trunk 1.0 1.0.1 1.0.2 1.0.3
everest-forms / src / dashboard / screens / Products / Products.js
everest-forms / src / dashboard / screens / Products Last commit date
components 1 year ago Products.js 1 year ago
Products.js
76 lines
1 /**
2 * External Dependencies
3 */
4 import { Box, Heading, SimpleGrid, Stack } from "@chakra-ui/react";
5 import { __ } from "@wordpress/i18n";
6 import React, { useContext, useEffect } from "react";
7
8 /**
9 * Internal Dependencies
10 */
11 import { PLUGINS, THEMES } from "../../Constants/Products";
12 import ProductCard from "./components/ProductCard";
13 import DashboardContext from "./../../context/DashboardContext";
14 import { actionTypes } from "../../reducers/DashboardReducer";
15
16 const Products = () => {
17 const { plugins, themes } =
18 typeof _EVF_DASHBOARD_ !== "undefined" && _EVF_DASHBOARD_;
19 const [{ pluginsStatus, themesStatus }, dispatch] =
20 useContext(DashboardContext);
21 useEffect(() => {
22 dispatch(
23 {
24 type: actionTypes.GET_PLUGINS_STATUS,
25 pluginsStatus: plugins,
26 },
27 {
28 type: actionTypes.GET_THEMES_STATUS,
29 themeStatus: themes,
30 }
31 );
32 }, [pluginsStatus, themesStatus]);
33 return (
34 <Stack my="8" mx="6">
35 <Box>
36 <Heading size="md" fontSize="xl" fontWeight="semibold" mb="8">
37 {__("Plugins", "everest-forms")}
38 </Heading>
39 <SimpleGrid
40 columns={{ base: 1, md: 2, lg: 3, xl: 4 }}
41 spacing="5"
42 >
43 {PLUGINS.map((plugin) => (
44 <ProductCard
45 key={plugin.slug}
46 {...plugin}
47 pluginsStatus={pluginsStatus}
48 themesStatus={themesStatus}
49 />
50 ))}
51 </SimpleGrid>
52 </Box>
53 <Box>
54 <Heading size="md" fontSize="xl" fontWeight="semibold" my="8">
55 {__("Themes", "everest-forms")}
56 </Heading>
57 <SimpleGrid
58 columns={{ base: 1, md: 2, lg: 3, xl: 4 }}
59 spacing="5"
60 >
61 {THEMES.map((theme) => (
62 <ProductCard
63 key={theme.slug}
64 {...theme}
65 pluginsStatus={pluginsStatus}
66 themesStatus={themesStatus}
67 />
68 ))}
69 </SimpleGrid>
70 </Box>
71 </Stack>
72 );
73 };
74
75 export default Products;
76