jrs-react 1.2.10 → 1.2.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jrs-react",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.es.js",
@@ -1,3 +1,5 @@
1
+ import React from "react"
2
+
1
3
  export default function JRButton({icon,children,...props}){
2
4
  return <button {...props}>{icon}{children}</button>
3
5
  }
@@ -150,11 +150,11 @@ export default class TitleBar extends React.Component{
150
150
  >
151
151
  <FreeType tag='div' config={this.props.title??''} me={this.props.window} className={'title'}/>
152
152
  <nav>
153
- <JRButton />
154
- <JRButton />
153
+ <JRButton icon={<IconMinus />}/>
154
+ <JRButton icon={<IconSquare />}/>
155
155
  {
156
156
  this.props.window.props.setOpen
157
- ?<JRButton
157
+ ?<JRButton icon={<IconX />}
158
158
  className={'danger'}
159
159
  onClick={()=>{
160
160
  this.props.window.props.setOpen(false)