minor fixes

This commit is contained in:
Salihu
2026-09-12 00:07:31 +01:00
parent b1d3c84baa
commit 04f8699e2b
3 changed files with 4 additions and 4 deletions
@@ -137,7 +137,7 @@ export default function SubpageItem({
<Stack gap={5}>
{isLoading ? (
<div style={{ paddingLeft: `${(depth + 2) * 20 + 4}px` }}>
...{t("loading")}
{t("Loading")}...
</div>
) : (
children.map((child) => (
@@ -110,7 +110,7 @@ export const SubpagesMenu = React.memo(
leftSection={sortBy === "default" ? <IconCheck size={14} /> : null}
onClick={() => updateSort("default")}
>
{t("default")}
{t("Default")}
</Menu.Item>
<Menu.Item
leftSection={sortBy === "title-asc" ? <IconCheck size={14} /> : null}
@@ -22,8 +22,8 @@ export function sortSubpages(
}
return sortedItems.sort((a, b) => {
const result = (a.title || "untitled").localeCompare(
b.title || "untitled",
const result = (a.title || "").localeCompare(
b.title || "",
undefined,
{
sensitivity: "base",