Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jan 15, 2025
1 parent f71b0e1 commit 2901cb5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src-editor/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ReactSplit, { SplitDirection } from '@devbookhq/splitter';
import { ThemeProvider, StyledEngineProvider } from '@mui/material/styles';

import { DragDropContext, type DropResult, type DragUpdate, DragStart } from 'react-beautiful-dnd';
import { DragDropContext, type DropResult } from 'react-beautiful-dnd';

import { Dialog, DialogTitle, Button, DialogActions, Box } from '@mui/material';

Expand Down
6 changes: 3 additions & 3 deletions src-editor/src/Components/ChartSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ class ChartSettings extends React.Component<ChartSettingsProps, ChartSettingsSta
this.toolbarRef = React.createRef();
}

componentDidMount() {
componentDidMount(): void {
window.addEventListener('resize', this.handleResize);
}

componentWillUnmount() {
componentWillUnmount(): void {
window.removeEventListener('resize', this.handleResize);
}

Expand Down Expand Up @@ -527,7 +527,7 @@ class ChartSettings extends React.Component<ChartSettingsProps, ChartSettingsSta
);
}

renderAutoRefresh() {
renderAutoRefresh(): React.JSX.Element | null {
if (this.props.presetData.timeType !== 'relative') {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion src-editor/src/Components/Fields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {

import { Subject as IconSelectID, Close as ClearIcon, Help as HelpIcon } from '@mui/icons-material';

import { I18n, DialogSelectID, ColorPicker, type AdminConnection, type IobTheme } from '@iobroker/adapter-react-v5';
import { I18n, DialogSelectID, type AdminConnection, type IobTheme } from '@iobroker/adapter-react-v5';

const styles: Record<string, React.CSSProperties> = {
fieldContainer: {
Expand Down
4 changes: 2 additions & 2 deletions src-editor/src/Components/PresetTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,11 @@ class PresetTabs extends React.Component<PresetTabsProps, PresetTabsState> {
this.colorPickerCb = null;
}

componentDidMount() {
componentDidMount(): void {
window.addEventListener('resize', this.handleResize);
}

componentWillUnmount() {
componentWillUnmount(): void {
window.removeEventListener('resize', this.handleResize);
}

Expand Down
5 changes: 3 additions & 2 deletions src-editor/src/MainChart.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import { ThemeProvider, StyledEngineProvider } from '@mui/material/styles';
import { Timeline } from '@mui/icons-material';

import type { IobTheme } from '@iobroker/adapter-react-v5';

import ChartSettings from './Components/ChartSettings';
import ChartFrame from './Components/ChartFrame';
import type { ChartConfigMore, SelectedChart } from '../../src/types';
import type { IobTheme } from '@iobroker/adapter-react-v5';
import {Timeline} from "@mui/icons-material";

const styles: Record<'container' | 'heightWithoutToolbar' | 'height100', React.CSSProperties> = {
container: {
Expand Down

0 comments on commit 2901cb5

Please sign in to comment.