fix: more routes in layout.svelte

This commit is contained in:
Face 2025-05-28 16:49:13 +03:00
parent 2a92c37d26
commit 383cdf6f03
2 changed files with 12 additions and 7 deletions

View file

@ -89,16 +89,24 @@
'/coin/create': 'Create Coin',
'/settings': 'Settings',
'/admin': 'Admin',
'/transactions': 'Transactions'
'/admin/promo': 'Promo Codes',
'/transactions': 'Transactions',
'/hopium': 'Hopium',
'/gambling': 'Gambling',
'/live': 'Live Trades',
'/treemap': 'Treemap'
};
// Handle dynamic routes
if (routeId.startsWith('/coin/[coinSymbol]')) {
return 'Coin Details';
}
if (routeId.startsWith('/user/[userId]')) {
if (routeId.startsWith('/user/[username]')) {
return 'User Profile';
}
if (routeId.startsWith('/hopium/[id]')) {
return 'Prediction Question';
}
return titleMap[routeId] || 'Rugplay';
}