Fix after MR

This commit is contained in:
Kevin FEDYNA
2025-01-15 15:57:08 +01:00
parent b720a5e7b8
commit b894930e12
9 changed files with 49 additions and 65 deletions
+17 -1
View File
@@ -1,13 +1,29 @@
import { AppProperties } from "$root/defaults/interfaces.ts";
import AppCard from "$root/routes/(_components)/AppCard.tsx";
type AppNavigatorProps = {
apps: Record<string, AppProperties>;
};
export default function AppNavigator(props: AppNavigatorProps) {
if (!props.apps) {
return (
<>
<h2>Welcome to PolyMPR!</h2>
<p>No apps available.</p>
</>
);
}
return (
<>
<p>{JSON.stringify(props.apps)}</p>
<h2>Welcome to PolyMPR!</h2>
<h3>app list</h3>
<div className="app-list">
{Object.entries(props.apps).map(([key, app]) => (
<AppCard href={key} app={app} />
))}
</div>
</>
);
}