PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/Recommendations/utils/record-activity.js +0 -20 3.1.23.2.1 View file →
@@ -18,28 +18,8 @@
18 18 };
19 19
20 20 const validSlots = Object.keys(stores);
21 21
22 -export const getRecommendation = ({ product, slot = 'plugin-search' }) => {
23 - const state = stores[slot].getState();
24 - const recommendations = selectAllRecommendations(state).map(
25 - (recommendation) =>
26 - objectFromKeys(recommendation, [
27 - 'slug',
28 - 'title',
29 - 'description',
30 - 'ctaContent',
31 - 'ctaType',
32 - 'triggerContent',
33 - 'triggerType',
34 - ]),
35 - );
36 -
37 - return recommendations.find(
38 - (recommendation) => recommendation.slug === product,
39 - )?.slug;
40 -};
41 -
42 22 export const recordActivity = ({ slot, event, product }) => {
43 23 if (!event || !validSlots.includes(slot)) {
44 24 return;
45 25 }