From 53b6bea37fdd3199595376a632426fb2309bb3b5 Mon Sep 17 00:00:00 2001 From: Chris Lowis Date: Wed, 11 Dec 2024 06:15:52 -0500 Subject: [PATCH] Add AccountNavComponentPreview --- .../previews/account_nav_component_preview.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/components/previews/account_nav_component_preview.rb diff --git a/test/components/previews/account_nav_component_preview.rb b/test/components/previews/account_nav_component_preview.rb new file mode 100644 index 00000000..9a3c07f3 --- /dev/null +++ b/test/components/previews/account_nav_component_preview.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class AccountNavComponentPreview < ViewComponent::Preview + def default + render( + AccountNavComponent.new( + user: User.new + ) + ) + end +end