PluginProbe
Extendify / trunk
Extendify vtrunk
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
extendify / src / Recommendations / components / RecommendationsGrid.jsx

RecommendationsGrid.jsx in Extendify trunk, at src/Recommendations/components/RecommendationsGrid.jsx

20 lines 625 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { RecommendationCard } from '@recommendations/components/RecommendationCard';
2
3 export const RecommendationsGrid = ({ recommendations }) => {
4 return (
5 <div
6 className="grid grid-cols-1 gap-4 px-6 pb-8 md:grid-cols-2 3xl:grid-cols-3 5xl:grid-cols-4"
7 data-test="extendify-recommendations-grid"
8 >
9 {recommendations.map((recommendation) =>
10 // Don't render the card if the CTA type is not supported.
11 ['plugin', 'external-link', 'internal-link'].includes(
12 recommendation.ctaType,
13 ) ? (
14 <RecommendationCard key={recommendation.slug} {...recommendation} />
15 ) : null,
16 )}
17 </div>
18 );
19 };
20