Skip to content

Commit 77904fb

Browse files
authored
feat(ecosystem): mark beta miniapps on desktop (#414)
- show beta badge on iOS desktop icons
1 parent b7023a5 commit 77904fb

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/components/ecosystem/my-apps-page.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,26 @@ function IOSDesktopIcon({ app, onTap, onOpen, onDetail, onRemove }: IOSDesktopIc
328328
borderRadius: 16,
329329
}}
330330
>
331+
{app.beta && (
332+
<div className="pointer-events-none absolute -top-1 -left-1" aria-hidden="true">
333+
<div
334+
className={cn(
335+
'ring-background ring-2',
336+
'flex items-center justify-center rounded-full',
337+
'bg-amber-500 text-white',
338+
)}
339+
style={{
340+
width: 18,
341+
height: 18,
342+
fontSize: 11,
343+
fontWeight: 700,
344+
}}
345+
>
346+
β
347+
</div>
348+
</div>
349+
)}
350+
331351
<motion.div
332352
{...(sharedLayoutIds
333353
? {

0 commit comments

Comments
 (0)