UI: Use text.previousPage for previous page navigation (#1637)

This commit is contained in:
nazo6
2025-03-29 13:10:13 +08:00
committed by GitHub
parent d5193e7611
commit c5af09f4cf
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"fumadocs-ui": patch
---
UI: Use `text.previousPage` for previous page navigation
+1 -1
View File
@@ -209,7 +209,7 @@ function FooterItem({ item, index }: { item: Item; index: 0 | 1 }) {
)}
>
<Icon className="-mx-1 size-4 shrink-0 rtl:rotate-180" />
<p>{title ?? text.nextPage}</p>
<p>{title ?? (index == 0 ? text.previousPage : text.nextPage) }</p>
</div>
<p
className={cn(