Skip to content

Commit

Permalink
feature/REFACTOR-code (#217)
Browse files Browse the repository at this point in the history
* REFACTOR: Code

* Update dependencies

* Update dependencies @mui

* Update dependencies other

* Revert "Update dependencies other"

This reverts commit 2f3c917.
  • Loading branch information
MiRo1310 authored Dec 4, 2024
1 parent 018353e commit eef138e
Show file tree
Hide file tree
Showing 13 changed files with 899 additions and 1,460 deletions.
1,193 changes: 149 additions & 1,044 deletions admin/build/index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions admin/build/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions admin/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { ThemeProvider } from '@mui/material/styles';
import theme from '@iobroker/adapter-react-v5/Theme';
import { Utils } from '@iobroker/adapter-react-v5';
import { Theme, Utils } from '@iobroker/adapter-react-v5';

import App from './app';

let themeName = Utils.getThemeName();

function build(): void {
ReactDOM.render(
<ThemeProvider theme={theme(themeName)}>
<ThemeProvider theme={Theme(themeName)}>
<App
onThemeChange={_theme => {
themeName = _theme;
Expand All @@ -22,4 +21,5 @@ function build(): void {
document.getElementById('root'),
);
}

build();
5 changes: 2 additions & 3 deletions admin/src/pages/AppContentHeaderMenuButtons.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { I18n } from '@iobroker/adapter-react-v5';
import ConfirmDialog from '@iobroker/adapter-react-v5/Dialogs/Confirm';
import { I18n, Confirm } from '@iobroker/adapter-react-v5';
import { Grid } from '@mui/material';
import React, { Component } from 'react';
import Button from '@components/Button';
Expand Down Expand Up @@ -251,7 +250,7 @@ class BtnCard extends Component<PropsBtnCard, StateBtnCard> {
</Button>

{this.state.confirmDialog ? (
<ConfirmDialog
<Confirm
title={I18n.t('reallyDelete')}
text={I18n.t('confirmDelete')}
ok={I18n.t('yes')}
Expand Down
5 changes: 5 additions & 0 deletions build/lib/global.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/lib/global.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 41 additions & 21 deletions build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/main.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit eef138e

Please sign in to comment.