Skip to content

Commit bf72044

Browse files
committed
feat(mobile/web): add version notification system for What's New
1 parent 918d906 commit bf72044

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/components/folders/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export default function FolderPanel({
353353
}
354354
/>
355355
<UserButton.Action
356-
label="What's New"
356+
label={hasNewVersion ? "What's New •" : "What's New"}
357357
labelIcon={
358358
<svg
359359
xmlns="http://www.w3.org/2000/svg"
@@ -371,6 +371,9 @@ export default function FolderPanel({
371371
<rect width="18" height="18" x="3" y="4" rx="2" />
372372
<path d="M3 10h18" />
373373
<path d="m9 16 2 2 4-4" />
374+
{hasNewVersion && (
375+
<circle cx="20" cy="4" r="3" fill="#ef4444" stroke="none" />
376+
)}
374377
</svg>
375378
}
376379
onClick={() => {

src/components/layout/MobileLayout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export function MobileLayout({
230230
}
231231
/>
232232
<UserButton.Action
233-
label="What's New"
233+
label={hasNewVersion ? "What's New •" : "What's New"}
234234
labelIcon={
235235
<svg
236236
xmlns="http://www.w3.org/2000/svg"
@@ -248,6 +248,9 @@ export function MobileLayout({
248248
<rect width="18" height="18" x="3" y="4" rx="2" />
249249
<path d="M3 10h18" />
250250
<path d="m9 16 2 2 4-4" />
251+
{hasNewVersion && (
252+
<circle cx="20" cy="4" r="3" fill="#ef4444" stroke="none" />
253+
)}
251254
</svg>
252255
}
253256
onClick={() => {

0 commit comments

Comments
 (0)