opf/openproject

View on GitHub
lookbook/previews/open_project/storages/admin/oauth_access_grant_nudge_modal_component_preview.rb

Summary

Maintainability
A
0 mins
Test Coverage
module OpenProject::Storages
  module Admin
    # @hidden
    class OAuthAccessGrantNudgeModalComponentPreview < Lookbook::Preview
      # Renders a oauth access grant nudge modal component
      # @param authorized toggle Denotes whether access has been granted and renders a success state
      def default(authorized: false)
        project_storage = FactoryBot.build_stubbed(:project_storage)
        render_with_template(locals: { project_storage:, authorized:, confirm_button_url: "#" })
      end
    end
  end
end