Skip to content

Commit

Permalink
Add a preview for the new_errors component
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo committed Aug 1, 2024
1 parent 7cb448a commit 096c7a2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/components/previews/errors_preview.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

class ErrorsPreview < Lookbook::Preview
def default
render(
'shared/new_errors',
model: User.create
)
end
end

0 comments on commit 096c7a2

Please sign in to comment.