diff --git a/src/pages/Connection.tsx b/src/pages/Connection.tsx index 35cebee..92e3fd2 100644 --- a/src/pages/Connection.tsx +++ b/src/pages/Connection.tsx @@ -445,10 +445,17 @@ export default function Connection() { : undefined; const currentPlatformApps = currentPlatformData ? getRemnawaveApps(currentPlatformData) : []; + // Current platform SVG icon for dropdown + const currentPlatformSvgKey = + currentPlatformData && isRemnawavePlatform(currentPlatformData) + ? currentPlatformData.svgIconKey + : undefined; + const currentPlatformSvg = getSvgHtml(currentPlatformSvgKey); + // Main RemnaWave view — inline app chips + blocks return (
- {/* Header */} + {/* Header + platform dropdown */}
{!isTelegramWebApp && (
- - {/* Platform tabs */} - {availablePlatforms.length > 1 && ( -
- {availablePlatforms.map((p) => { - const isActive = p === currentPlatformKey; - const pData = appConfig.platforms[p]; - const svgIconKey = pData && isRemnawavePlatform(pData) ? pData.svgIconKey : undefined; - const platformSvg = getSvgHtml(svgIconKey); - return ( - - ); - })} -
- )} + + +
+ + )} + {/* App cards row */} {currentPlatformApps.length > 0 && ( -
+
{currentPlatformApps.map((app, idx) => { const isSelected = currentApp?.name === app.name; const appIconSvg = getSvgHtml(app.svgIconKey); @@ -512,17 +526,17 @@ export default function Connection() {