Skip to content

Commit

Permalink
Migrate ObjectBrowser to Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Apr 23, 2024
1 parent e8865ae commit c55ea1a
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 426 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@fnando/sparkline": "^0.3.10",
"@honkhonk/vite-plugin-svgr": "^1.1.0",
"@iobroker/adapter-react-v5": "^4.13.10",
"@iobroker/adapter-react-v5": "^4.13.11",
"@iobroker/admin-component-easy-access": "^0.3.2",
"@iobroker/dm-utils": "^0.1.9",
"@iobroker/legacy-testing": "^1.0.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/src/src/components/FileBrowser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ class FileBrowser extends Component<FileBrowserProps, FileBrowserState> {
this.props.classes[`itemFolderIcon${this.state.viewType}`],
isSpecialData && this.props.classes.specialFolder,
)}
onClick={this.state.viewType === TABLE ? e => this.toggleFolder(item, e) : undefined}
onClick={this.state.viewType === TABLE ? (e: React.MouseEvent<HTMLDivElement>) => this.toggleFolder(item, e) : undefined}
/>

<div
Expand Down
Loading

0 comments on commit c55ea1a

Please sign in to comment.