From 5dceab83cbd133187dd09e547f7ea9078d8a2a3f Mon Sep 17 00:00:00 2001 From: Behrokh Satarnejad Date: Wed, 20 Nov 2024 13:26:33 +0100 Subject: [PATCH] add a preview for lookbook --- .../work_packages/info_line_component_preview.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lookbook/previews/open_project/work_packages/info_line_component_preview.rb diff --git a/lookbook/previews/open_project/work_packages/info_line_component_preview.rb b/lookbook/previews/open_project/work_packages/info_line_component_preview.rb new file mode 100644 index 000000000000..395efce6b9df --- /dev/null +++ b/lookbook/previews/open_project/work_packages/info_line_component_preview.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module OpenProject::WorkPackages + # @logical_path OpenProject/WorkPackages + class InfoLineComponentPreview < ViewComponent::Preview + def playground + render(WorkPackages::InfoLineComponent.new(id: WorkPackage.visible.pick(:id))) + end + end +end