@@ -13,6 +13,40 @@ import styles from './style.module.scss';
1313
1414import { PlatformIcon } from '../platformIcon' ;
1515
16+ const mostViewedPlatforms : { icon : string ; key : string ; title : string ; url : string } [ ] = [
17+ {
18+ url : '/platforms/javascript/guides/nextjs/' ,
19+ key : 'javascript-nextjs' ,
20+ icon : 'javascript-nextjs' ,
21+ title : 'Next.js' ,
22+ } ,
23+ {
24+ url : '/platforms/javascript/guides/react/' ,
25+ key : 'javascript-react' ,
26+ icon : 'javascript-react' ,
27+ title : 'React' ,
28+ } ,
29+ {
30+ url : 'platforms/php/guides/laravel/' ,
31+ key : 'php-laravel' ,
32+ icon : 'php-laravel' ,
33+ title : 'Laravel' ,
34+ } ,
35+ {
36+ url : '/platforms/javascript/guides/node/' ,
37+ key : 'node' ,
38+ icon : 'javascript-node' ,
39+ title : 'Node.js' ,
40+ } ,
41+ { url : '/platforms/python/' , key : 'python' , icon : 'python' , title : 'Python' } ,
42+ {
43+ url : '/platforms/react-native/' ,
44+ key : 'react-native' ,
45+ icon : 'react-native' ,
46+ title : 'React Native' ,
47+ } ,
48+ ] ;
49+
1650export function PlatformFilterClient ( { platforms} : { platforms : Platform [ ] } ) {
1751 const platformsAndGuides = platforms
1852 . map ( p => [
@@ -47,40 +81,6 @@ export function PlatformFilterClient({platforms}: {platforms: Platform[]}) {
4781 } )
4882 ) ;
4983
50- const mostViewedPlatforms : { icon : string ; key : string ; title : string ; url : string } [ ] = [
51- {
52- url : '/platforms/javascript/guides/nextjs/' ,
53- key : 'javascript-nextjs' ,
54- icon : 'javascript-nextjs' ,
55- title : 'Next.js' ,
56- } ,
57- {
58- url : '/platforms/javascript/guides/react/' ,
59- key : 'javascript-react' ,
60- icon : 'javascript-react' ,
61- title : 'React' ,
62- } ,
63- {
64- url : 'platforms/php/guides/laravel/' ,
65- key : 'php-laravel' ,
66- icon : 'php-laravel' ,
67- title : 'Laravel' ,
68- } ,
69- {
70- url : '/platforms/javascript/guides/node/' ,
71- key : 'node' ,
72- icon : 'javascript-node' ,
73- title : 'Node.js' ,
74- } ,
75- { url : '/platforms/python/' , key : 'python' , icon : 'python' , title : 'Python' } ,
76- {
77- url : '/platforms/react-native/' ,
78- key : 'react-native' ,
79- icon : 'react-native' ,
80- title : 'React Native' ,
81- } ,
82- ] ;
83-
8484 return (
8585 < div >
8686 { /* TODO: Refactor a more elegant solution for this top grid, this was thrown together quickly for https://github.com/getsentry/projects/issues/548 */ }
0 commit comments