import React, { Component } from react class MyComponent extends Component { render = () => { return (
{ link_to t('doorkeeper.applications.buttons.back'), oauth_applications_path(), className: 'button link-button button-margin' }

{ t('.title', name: @application.name) }

{ t('.application_id') }:

{ @application.uid }

{ t('.secret') }:

{ @application.secret }

{ t('.callback_urls') }:

{ @application.redirect_uri.split.each do |uri| } { end }
{ uri } { link_to t('doorkeeper.applications.buttons.authorize'), oauth_authorization_path(client_id: @application.uid, redirect_uri: uri, response_type: 'code'), className: 'button link-button', target: '_blank' }
{ link_to t('doorkeeper.applications.buttons.edit'), edit_oauth_application_path(@application), className: 'button link-button' }
{ render 'delete_form', application: @application, submit_btn_css: 'button red-button' }
) } } export default MyComponent