fix: correct remaining class attribute syntax errors

Fixed another incorrect class attribute syntax in connection_indicator component that was causing Protocol.UndefinedError.
This commit is contained in:
Graham McIntire 2025-10-12 12:04:39 -05:00
parent 1905c6b41a
commit 533061c261
No known key found for this signature in database

View file

@ -112,10 +112,10 @@ defmodule AprsmeWeb.MapLive.Components do
<div class="flex items-center space-x-2">
<div class={[
"h-3 w-3 rounded-full",
"bg-green-500": @connection_status == "connected",
"bg-yellow-500": @connection_status == "connecting",
"bg-red-500": @connection_status == "disconnected",
"bg-gray-400": @connection_status == "pending"
@connection_status == "connected" && "bg-green-500",
@connection_status == "connecting" && "bg-yellow-500",
@connection_status == "disconnected" && "bg-red-500",
@connection_status == "pending" && "bg-gray-400"
]}>
</div>
<span class="text-sm text-gray-700">