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}> <Stack gap={5}>
{isLoading ? ( {isLoading ? (
<div style={{ paddingLeft: `${(depth + 2) * 20 + 4}px` }}> <div style={{ paddingLeft: `${(depth + 2) * 20 + 4}px` }}>
...{t("loading")} {t("Loading")}...
</div> </div>
) : ( ) : (
children.map((child) => ( children.map((child) => (
@@ -110,7 +110,7 @@ export const SubpagesMenu = React.memo(
leftSection={sortBy === "default" ? <IconCheck size={14} /> : null} leftSection={sortBy === "default" ? <IconCheck size={14} /> : null}
onClick={() => updateSort("default")} onClick={() => updateSort("default")}
> >
{t("default")} {t("Default")}
</Menu.Item> </Menu.Item>
<Menu.Item <Menu.Item
leftSection={sortBy === "title-asc" ? <IconCheck size={14} /> : null} leftSection={sortBy === "title-asc" ? <IconCheck size={14} /> : null}
@@ -22,8 +22,8 @@ export function sortSubpages(
} }
return sortedItems.sort((a, b) => { return sortedItems.sort((a, b) => {
const result = (a.title || "untitled").localeCompare( const result = (a.title || "").localeCompare(
b.title || "untitled", b.title || "",
undefined, undefined,
{ {
sensitivity: "base", sensitivity: "base",