Remove unused persona marketplace and discover page files.
This commit is contained in:
+2
-2
@@ -7,8 +7,8 @@ const escapeHtml = (value) => String(value).replace(/[&<>"']/g, (character) => (
|
||||
|
||||
export function renderSiteHeader({user, pathname}) {
|
||||
const destinations = user
|
||||
? [["/app", "Home"], ["/app/chats", "Chats"], ["/app/personas", "My personas"], ["/market", "Discover"], ["/app/settings", "Settings"]]
|
||||
: [["/market", "Discover"]];
|
||||
? [["/app", "Home"], ["/app/chats", "Chats"], ["/app/personas", "Personalities"], ["/app/settings", "Settings"]]
|
||||
: [];
|
||||
const navigation = destinations.map(([href, label]) => {
|
||||
const active = pathname === href || (href === "/app/chats" && pathname.startsWith("/app/chats/"));
|
||||
return `<a href="${href}"${active ? ' aria-current="page"' : ""}>${label}</a>`;
|
||||
|
||||
Reference in New Issue
Block a user