From 6992528f2f6036e11d2a5f9740ec351c1713a4f1 Mon Sep 17 00:00:00 2001 From: shibao Date: Sat, 18 Mar 2023 01:35:20 -0400 Subject: [PATCH] fix table component not sorting structs correctly --- lib/memex_web/components/table_component.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/memex_web/components/table_component.ex b/lib/memex_web/components/table_component.ex index 8f0fcd8..4d5b55b 100644 --- a/lib/memex_web/components/table_component.ex +++ b/lib/memex_web/components/table_component.ex @@ -74,8 +74,8 @@ defmodule MemexWeb.Components.TableComponent do last_sort_key: initial_key, sort_mode: initial_sort_mode ) - |> assign_new(:row_class, fn -> "bg-primary-900" end) - |> assign_new(:alternate_row_class, fn -> "bg-primary-900" end) + |> assign_new(:row_class, fn -> "bg-white" end) + |> assign_new(:alternate_row_class, fn -> "bg-gray-200" end) {:ok, socket} end