@@ -5,7 +5,6 @@ import { Folder } from "lucide-react"
5
5
import { AppCategory , AppData } from "@/lib/types"
6
6
7
7
import { Button } from "@/components/ui/buttons/Button"
8
- import { BaseLink } from "@/components/ui/Link"
9
8
import { LinkBox , LinkOverlay } from "@/components/ui/link-box"
10
9
import {
11
10
Swiper ,
@@ -92,48 +91,46 @@ const TopApps = ({ appsData }: TopAppsProps) => {
92
91
< SwiperSlide key = { category } >
93
92
< div className = "flex flex-col rounded-xl border" >
94
93
< LinkBox className = "rounded-t-xl border-b p-4 hover:bg-background-highlight" >
95
- < LinkOverlay asChild >
96
- < BaseLink
97
- href = { `/apps/categories/${ slugify ( category ) } ` }
98
- className = "text-body no-underline"
99
- customEventOptions = { {
100
- eventCategory : "apps" ,
101
- eventAction : "categories" ,
102
- eventName : `topapps_category_name_${ category } ` ,
103
- } }
104
- >
105
- < div className = "flex flex-row items-center justify-between gap-2" >
106
- < div className = "flex items-center gap-2" >
107
- < div className = "rounded-lg border p-2" >
108
- { ( ( ) => {
109
- // Find the category data by matching the name
110
- const categoryData = Object . values (
111
- appsCategories
112
- ) . find ( ( cat ) => cat . name === category )
113
- const CategoryIcon = categoryData ?. icon
114
- return CategoryIcon ? (
115
- < CategoryIcon className = "h-6 w-6" />
116
- ) : (
117
- < Folder className = "h-6 w-6" />
118
- )
119
- } ) ( ) }
120
- </ div >
121
- < p className = "text-lg font-bold text-body no-underline group-hover:text-primary" >
122
- { category }
123
- </ p >
124
- </ div >
125
- < div >
126
- < Button
127
- variant = "outline"
128
- isSecondary
129
- size = "sm"
130
- className = "w-fit"
131
- >
132
- < p className = "text-sm" > See all</ p >
133
- </ Button >
94
+ < LinkOverlay
95
+ href = { `/apps/categories/${ slugify ( category ) } ` }
96
+ className = "text-body no-underline"
97
+ customEventOptions = { {
98
+ eventCategory : "apps" ,
99
+ eventAction : "categories" ,
100
+ eventName : `topapps_category_name_${ category } ` ,
101
+ } }
102
+ >
103
+ < div className = "flex flex-row items-center justify-between gap-2" >
104
+ < div className = "flex items-center gap-2" >
105
+ < div className = "rounded-lg border p-2" >
106
+ { ( ( ) => {
107
+ // Find the category data by matching the name
108
+ const categoryData = Object . values (
109
+ appsCategories
110
+ ) . find ( ( cat ) => cat . name === category )
111
+ const CategoryIcon = categoryData ?. icon
112
+ return CategoryIcon ? (
113
+ < CategoryIcon className = "h-6 w-6" />
114
+ ) : (
115
+ < Folder className = "h-6 w-6" />
116
+ )
117
+ } ) ( ) }
134
118
</ div >
119
+ < p className = "text-lg font-bold text-body no-underline group-hover:text-primary" >
120
+ { category }
121
+ </ p >
122
+ </ div >
123
+ < div >
124
+ < Button
125
+ variant = "outline"
126
+ isSecondary
127
+ size = "sm"
128
+ className = "w-fit"
129
+ >
130
+ < p className = "text-sm" > See all</ p >
131
+ </ Button >
135
132
</ div >
136
- </ BaseLink >
133
+ </ div >
137
134
</ LinkOverlay >
138
135
</ LinkBox >
139
136
< div className = "flex flex-col" >
0 commit comments