Skip to content

Commit

Permalink
Corrected widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Aug 6, 2024
1 parent 02a4c79 commit 06ed5e1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 30 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This widget set consists of the following widgets:
### **WORK IN PROGRESS**
-->
## Changelog
### 1.0.1 (2024-08-05)
### **WORK IN PROGRESS**
* (bluefox) updated packages

### 1.0.0 (2024-07-07)
Expand Down
13 changes: 0 additions & 13 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@
"name": "vis-2-widgets-energy",
"version": "1.0.1",
"news": {
"1.0.1": {
"en": "updated packages",
"de": "aktualisierte pakete",
"ru": "обновления пакетов",
"pt": "pacotes atualizados",
"nl": "bijgewerkte pakketten",
"fr": "paquets mis à jour",
"it": "pacchetti aggiornati",
"es": "paquetes actualizados",
"pl": "zaktualizowane pakiety",
"uk": "оновлені пакети",
"zh-cn": "更新软件包"
},
"1.0.0": {
"en": "Removed withStyles package",
"de": "MitStyles-Paket entfernt",
Expand Down
16 changes: 0 additions & 16 deletions src-widgets/src/Generic.jsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
import PropTypes from 'prop-types';

import {
Card, CardContent,
} from '@mui/material';

class Generic extends window.visRxWidget {
getPropertyValue = state => this.state.values[`${this.state.rxData[state]}.val`];

// eslint-disable-next-line class-methods-use-this
static getI18nPrefix() {
return 'vis_2_widgets_energy_';
}

static getText(text) {
if (typeof text === 'object') {
return text[(window.visRxWidget || VisRxWidget).getLanguage()] || text.en;
}
return text;
}

// eslint-disable-next-line class-methods-use-this
wrapContent(content, addToHeader, cardContentStyle, headerStyle, onCardClick) {
return super.wrapContent(content, addToHeader, cardContentStyle, headerStyle, onCardClick, { Card, CardContent });
}
}

Generic.propTypes = {
Expand Down

0 comments on commit 06ed5e1

Please sign in to comment.