This commit is contained in:
Sean Edmunds
2025-04-15 20:21:25 -05:00
parent 2e72b76e95
commit 78dec160b6
34 changed files with 225 additions and 466 deletions

View File

@@ -2,7 +2,7 @@ import { Divider, Group } from '@mantine/core';
import { useCommonHooks } from 'hooks';
import HintItem from './HintItem';
function HelpSection({ name, items }: any) {
function HelpSection({ name, items }: { name: string; items: object[] }) {
const { theme } = useCommonHooks();
return (
<>
@@ -30,7 +30,7 @@ function HelpSection({ name, items }: any) {
}}
>
{items
?.sort((a: any, b: any) => (a.command > b.command ? 1 : -1))
?.toSorted((a: any, b: any) => (a.command > b.command ? 1 : -1))
.map((item: any) => (
<HintItem key={item.command} command={item.command} name={item.name} />
))}