jrs-react 1.2.47 → 1.2.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -199,8 +199,6 @@ export default class TitleBar extends React.Component{
199
199
  window.removeEventListener('mousemove',this.preMove)
200
200
  }
201
201
  start(e){
202
- po('start',this)
203
- po('this.props.windowRef',this.props.windowRef)
204
202
  e.preventDefault()
205
203
  this.moved=false
206
204
  this.pos3 = e.clientX
@@ -228,7 +226,7 @@ export default class TitleBar extends React.Component{
228
226
  {/* <JRButton icon={<IconMinus />}/>
229
227
  <JRButton icon={<IconSquare />}/> */}
230
228
  {
231
- this.props.jrWindow.props.close
229
+ this.props.window.props.setOpen
232
230
  ?<JRButton icon={<IconX />}
233
231
  className={'danger'}
234
232
  onClick={(e)=>{
@@ -236,7 +234,7 @@ export default class TitleBar extends React.Component{
236
234
  if(this.props.window.orgBodyOverflow!=null){
237
235
  document.body.style.overflow=this.props.window.orgBodyOverflow
238
236
  }
239
- this.props.jrWindow.props.close()
237
+ this.props.window.props.setOpen(false)
240
238
  }}
241
239
  onMouseDown={(e)=>{
242
240
  e.stopPropagation()
package/src/main.jsx CHANGED
@@ -1,10 +1,10 @@
1
- import { StrictMode } from 'react'
2
- import { createRoot } from 'react-dom/client'
3
- import './app/index.css'
4
- import App from './app/App.jsx'
5
- import JRFields from './components/JRFields/JRFields.jsx'
6
- import JRText from './components/JRInput/JRText.jsx'
7
-
8
- const root = createRoot(document.getElementById('root'))
9
- root.render(<App/>)
10
-
1
+ import { StrictMode } from 'react'
2
+ import { createRoot } from 'react-dom/client'
3
+ import './app/index.css'
4
+ import App from './app/App.jsx'
5
+ import JRFields from './components/JRFields/JRFields.jsx'
6
+ import JRText from './components/JRInput/JRText.jsx'
7
+
8
+ const root = createRoot(document.getElementById('root'))
9
+ root.render(<App/>)
10
+