Skip to content

Commit

Permalink
Add SignUpComponent preview
Browse files Browse the repository at this point in the history
  • Loading branch information
vpereira committed Sep 16, 2021
1 parent 7b2fe10 commit 0ca9cc3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/api/spec/components/previews/sign_up_component_preview.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class SignUpComponentPreview < ViewComponent::Preview
# Preview at http://HOST:PORT/rails/view_components/sign_up_component/sign_up
def sign_up
render(SignUpComponent.new(config: {}))
end

# Preview at http://HOST:PORT/rails/view_components/sign_up_component/create
def create
render(SignUpComponent.new(config: {}, create_page: true))
end
end

0 comments on commit 0ca9cc3

Please sign in to comment.