diff --git a/lib/basket_web/live/overview.ex b/lib/basket_web/live/overview.ex index e20adaa..6d460e2 100644 --- a/lib/basket_web/live/overview.ex +++ b/lib/basket_web/live/overview.ex @@ -102,7 +102,7 @@ defmodule BasketWeb.Live.Overview do ~H"""
-
+
<.live_component :if={!club_mode?(@user) || officer?(@user)} module={Search} diff --git a/lib/basket_web/live/overview/ticker_bar_table.ex b/lib/basket_web/live/overview/ticker_bar_table.ex index e31a888..00d3d17 100644 --- a/lib/basket_web/live/overview/ticker_bar_table.ex +++ b/lib/basket_web/live/overview/ticker_bar_table.ex @@ -9,7 +9,7 @@ defmodule BasketWeb.Live.Overview.TickerBarTable do alias Basket.Http alias Basket.Http.Alpaca.Bars - alias BasketWeb.{CoreComponents, Presence} + alias BasketWeb.{Presence} @doc """ Creates a row to be added to the ticker bar table. Deserializes the data into TickerBar instances @@ -51,39 +51,36 @@ defmodule BasketWeb.Live.Overview.TickerBarTable do def render(assigns) do ~H"""
- - <:col :let={row} key="ticker" label="ticker"><%= row.ticker %> - <:col :let={row} key="open" label="open"><%= row.open %> - <:col :let={row} key="high" label="high"><%= row.high %> - <:col :let={row} key="low" label="low"><%= row.low %> - <:col :let={row} key="close" label="close"><%= row.close %> - <:col :let={row} key="volume" label="volume"><%= row.volume %> - <:col :let={row} key="timestamp" label="timestamp"><%= row.timestamp %> - - <:col :let={row} :if={@can_delete}> - - - +
+ + <%= Map.get(row, col) %> + +
+ + + +
""" end + + defp columns, do: [:ticker, :open, :high, :low, :close, :volume, :timestamp] end