2 * Created by onvelocity on 2/2/16.
5 import React
from 'react'
6 import OpenWindow
from 'react-popout'
7 import JSONViewer
from 'widgets/JSONViewer/JSONViewer';
8 import ComposerAppActions
from '../actions/ComposerAppActions'
10 import 'widgets/JSONViewer/JSONViewer.scss'
12 window
._open
= window
.open
.bind(window
);
13 window
.open
= function monkeyPatchOpen(url
, name
, options
) {
14 const popupWindow
= this._open(url
, name
, options
);
15 popupWindow
.document
.getElementsByTagName('body')[0].focus();
19 'paddingTop' : '1rem',
22 'textTransform': 'uppercase',
23 'fontSize': '1.625rem',
24 'fontWeight': 'normal',
25 'fontFamily': 'sans-serif'
27 export default function (props
) {
32 ComposerAppActions
.closeJsonViewer();
35 <OpenWindow title
={"RIFT.ware Popup"} onClosing
={onClose
}>
36 <div style
={{backgroundColor
: '#f1f1f1', 'paddingBottom': '1rem'}}>
37 <h1 style
={h1style
}>{props
.title
}</h1
>