Extract components to render custom image table actions

This way it'll be easier to refactor them. We're also giving a proper
title to the images index page.
This commit is contained in:
Javi Martín
2024-03-31 19:31:36 +02:00
parent e884bc28e1
commit b33eec101e
5 changed files with 56 additions and 31 deletions

View File

@@ -0,0 +1,7 @@
class Admin::SiteCustomization::Images::TableActionsComponent < ApplicationComponent
attr_reader :image
def initialize(image)
@image = image
end
end