package org.sagebionetworks.web.client.view;

import org.sagebionetworks.web.client.context.SynapseContextPropsProvider;
import org.sagebionetworks.web.client.jsinterop.React;
import org.sagebionetworks.web.client.jsinterop.ReactDOM;
import org.sagebionetworks.web.client.jsinterop.ReviewerDashboardProps;
import org.sagebionetworks.web.client.jsinterop.SRC;
import org.sagebionetworks.web.client.presenter.DataAccessManagementPresenter;
import org.sagebionetworks.web.client.widget.ReactComponentDiv;
import org.sagebionetworks.web.client.widget.entity.act.RejectDataAccessRequestModal;
import org.sagebionetworks.web.client.widget.header.Header;

import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;

public class DataAccessManagementViewImpl implements DataAccessManagementView {
    public interface DataAccessManagementViewImplUiBinder extends UiBinder<Widget, DataAccessManagementViewImpl> {
    }

    private DataAccessManagementPresenter presenter;

	RejectDataAccessRequestModal rejectModal;

    private SynapseContextPropsProvider propsProvider;
    private Header headerWidget;

    @UiField
    ReactComponentDiv reactComponent;

    Widget widget;

    @Inject
    public DataAccessManagementViewImpl(DataAccessManagementViewImplUiBinder binder, Header headerWidget, SynapseContextPropsProvider propsProvider, RejectDataAccessRequestModal rejectModal) {
        widget = binder.createAndBindUi(this);
        this.headerWidget = headerWidget;
        this.propsProvider = propsProvider;
		this.rejectModal = rejectModal;
        headerWidget.configure();
    }

    @Override
    public void setPresenter(DataAccessManagementPresenter presenter) {
        this.presenter = presenter;
        headerWidget.configure();
        headerWidget.refresh();
        Window.scrollTo(0,0);
        render();
    }

    @Override
    public Widget asWidget() { return widget; }

    @Override
    public void render() {
		ReviewerDashboardProps.OnRejectSubmissionClicked onRejectCallback = onReject -> rejectModal.show((reason) -> onReject.onReject(reason));
		ReviewerDashboardProps props = ReviewerDashboardProps.create(onRejectCallback);

        ReactDOM.unmountComponentAtNode(reactComponent.getElement());
        ReactDOM.render(
            React.createElementWithSynapseContext(SRC.SynapseComponents.ReviewerDashboard, props, propsProvider.getJsInteropContextProps()),
            reactComponent.getElement()
        );
    }
}

@@ -1114,17 +1114,20 @@
 enter;%0A%0A
-%09
+    
 RejectDa
@@ -1660,18 +1660,24 @@
 ovider;%0A
-%09%09
+        
 this.rej
@@ -2088,18 +2088,24 @@
 der() %7B%0A
-%09%09
+        
 Reviewer
@@ -2237,10 +2237,16 @@
 ));%0A
-%09%09
+        
 Revi

Use spaces vs tabs