Skip to content

Commit

Permalink
Fixing linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jul 7, 2024
1 parent a52f95e commit 2400e5b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { getViewsWithDifferentValues } from '@/Attributes/View/ApplyProperties';
import getEditField from '@/Attributes/View/EditField';
import type { Field } from '@/Attributes/View/Items';
import { deepClone } from '@/Utils/utils';
import commonStyles from "@/Utils/styles";
import commonStyles from '@/Utils/styles';

const styles: { draggableItem: React.CSSProperties } = {
draggableItem: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ export default class BasicBulb extends VisRxWidget<RxData> {

if (urlTrue) {
if (val) {
this.props.socket.getRawSocket().emit('httpGet', urlTrue);
this.props.context.socket.getRawSocket().emit('httpGet', urlTrue);
} else {
this.props.socket.getRawSocket().emit('httpGet', urlFalse);
this.props.context.socket.getRawSocket().emit('httpGet', urlFalse);
}
}
} else if ((finalMin === '' && (val === null || val === '' || val === undefined || val === false || val === 'false')) ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class BasicValueString extends VisRxWidget<RxData> {
display: 'flex',
alignItems: 'center',
} : {};

return <div className="vis-widget-body">
<div data-oid={oid} style={style}>
{this.state.rxData.icon ? <Icon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ class JQuiButton<P extends JQuiButtonDataProps = JQuiButtonDataProps, S extends
window.location.href = this.state.rxData.href;
}
} else if (this.state.rxData.url) {
this.props.socket.getRawSocket().emit('httpGet', this.state.rxData.url, (data: any) =>
this.props.context.socket.getRawSocket().emit('httpGet', this.state.rxData.url, (data: any) =>
console.log('httpGet', this.state.rxData.url, data));
}

Expand Down
5 changes: 0 additions & 5 deletions packages/iobroker.vis-2/src/src/Vis/visBaseWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
KeyboardReturn,
} from '@mui/icons-material';

import type { LegacyConnection } from '@iobroker/adapter-react-v5';
import { I18n, Utils } from '@iobroker/adapter-react-v5';

import { calculateOverflow, deepClone, isVarFinite } from '@/Utils/utils';
Expand Down Expand Up @@ -76,10 +75,6 @@ export interface VisBaseWidgetProps {
refParent: React.RefObject<HTMLElement>;
// eslint-disable-next-line react/no-unused-prop-types
customSettings: Record<string, any>;
// eslint-disable-next-line react/no-unused-prop-types
classes: Record<string, string>;
// eslint-disable-next-line react/no-unused-prop-types
socket: LegacyConnection;
}

interface HTMLDivElementResizers extends HTMLDivElement {
Expand Down

0 comments on commit 2400e5b

Please sign in to comment.