Revert "Extract stats data grid component"

This reverts commit 432f09cf6f.
This commit is contained in:
Claudio Ortolina
2024-10-30 17:26:49 +00:00
parent 4ce71cf4e2
commit 79eb5a8d37
5 changed files with 46 additions and 53 deletions
@@ -9,12 +9,10 @@ defmodule MusicLibraryWeb.StatsLive.Index do
def mount(_params, _session, socket) do
collection_count_by_format =
Records.count_records_by_format()
|> Enum.map(fn {format, count} -> {Record.format_long_label(format), count} end)
|> Enum.sort_by(fn {_format, count} -> count end, :desc)
collection_count_by_type =
Records.count_records_by_type()
|> Enum.map(fn {type, count} -> {Record.type_long_label(type), count} end)
|> Enum.sort_by(fn {_type, count} -> count end, :desc)
collection_count =