From 812e09ee1f86addf4856e788df4ce7aa4a1f4827 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Fernandes?=
<49888340+joaopfernandesc@users.noreply.github.com>
Date: Wed, 23 Oct 2024 21:05:40 +0200
Subject: [PATCH] feat: allow to set a empty state for index table
---
.../polaris/index_table_component.html.erb | 36 ++++++++++---------
.../polaris/index_table_component.rb | 1 +
.../previews/index_table_component_preview.rb | 3 ++
.../empty_state.html.erb | 19 ++++++++++
.../polaris/index_table_component_test.rb | 10 ++++++
5 files changed, 53 insertions(+), 16 deletions(-)
create mode 100644 demo/app/previews/index_table_component_preview/empty_state.html.erb
diff --git a/app/components/polaris/index_table_component.html.erb b/app/components/polaris/index_table_component.html.erb
index b23f2548..2043ec38 100644
--- a/app/components/polaris/index_table_component.html.erb
+++ b/app/components/polaris/index_table_component.html.erb
@@ -1,21 +1,25 @@
<%= render Polaris::BaseComponent.new(**system_arguments) do %>
-