0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-23 09:53:06 +00:00

all imports

This commit is contained in:
Víctor Losada Hernández
2026-01-20 22:14:34 +01:00
parent 0d6c3c7e33
commit fc8656e05b
78 changed files with 415 additions and 334 deletions

View File

@@ -1,7 +1,8 @@
import React, {createClass} from 'react';
import React from 'react';
import createReactClass from 'create-react-class';
import request from 'superagent';
const BrewCleanup = createClass({
const BrewCleanup = createReactClass({
displayName : 'BrewCleanup',
getDefaultProps(){
return {};

View File

@@ -1,7 +1,8 @@
import React, {createClass} from 'react';
import React from 'react';
import createReactClass from 'create-react-class';
import request from 'superagent';
const BrewCompress = createClass({
const BrewCompress = createReactClass({
displayName : 'BrewCompress',
getDefaultProps(){
return {};

View File

@@ -1,10 +1,11 @@
import React, {createClass} from 'react';
import React from 'react';
import createReactClass from 'create-react-class';
import request from 'superagent';
import cx from 'classnames';
import Moment from 'moment';
const BrewLookup = createClass({
const BrewLookup = createReactClass({
getDefaultProps() {
return {};
},

View File

@@ -1,7 +1,8 @@
import React, {createClass} from 'react';
import React from 'react';
import createReactClass from 'create-react-class';
import request from 'superagent';
const Stats = createClass({
const Stats = createReactClass({
displayName : 'Stats',
getDefaultProps(){
return {};

View File

@@ -1,10 +1,11 @@
/*eslint max-lines: ["warn", {"max": 500, "skipBlankLines": true, "skipComments": true}]*/
require('./lockTools.less');
import React, {createClass} from 'react';
import './lockTools.less';
import React from 'react';
import createReactClass from 'create-react-class';
import request from '../../homebrew/utils/request-middleware.js';
const LockTools = createClass({
const LockTools = createReactClass({
displayName : 'LockTools',
getInitialState : function() {
return {
@@ -54,7 +55,7 @@ const LockTools = createClass({
}
});
const LockBrew = createClass({
const LockBrew = createReactClass({
displayName : 'LockBrew',
getInitialState : function() {
// Default values
@@ -182,7 +183,7 @@ const LockBrew = createClass({
}
});
const LockTable = createClass({
const LockTable = createReactClass({
displayName : 'LockTable',
getDefaultProps : function() {
return {
@@ -272,7 +273,7 @@ const LockTable = createClass({
}
});
const LockLookup = createClass({
const LockLookup = createReactClass({
displayName : 'LockLookup',
getDefaultProps : function() {
return {

View File

@@ -1,4 +1,4 @@
require('./notificationAdd.less');
import './notificationAdd.less';
import React, { useState, useRef } from 'react';
import request from 'superagent';

View File

@@ -1,5 +1,4 @@
require('./notificationLookup.less');
import './notificationLookup.less';
import React, { useState} from 'react';
import request from 'superagent';
import Moment from 'moment';