diff --git a/ui/src/components/AlbumImageView.tsx b/ui/src/components/AlbumImageView.tsx index a2de68b405822583cc3bdd03c677a0897ce6e097..72a4865d10cd67a82b650e3fb49a8c5137059bdd 100644 --- a/ui/src/components/AlbumImageView.tsx +++ b/ui/src/components/AlbumImageView.tsx @@ -1,4 +1,3 @@ -import React from "react"; import {AlbumImage} from "../api/model/AlbumImage"; export interface AlbumImageProps { diff --git a/ui/src/components/AlbumList.tsx b/ui/src/components/AlbumList.tsx index 6b827d3f76ad18d536698f4a08020937817027bd..b2b8b7be2b31487a0da1118bdc837f37d27236c2 100644 --- a/ui/src/components/AlbumList.tsx +++ b/ui/src/components/AlbumList.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import '../App.css'; import {useListAlbums} from "../api/useListAlbums"; import AlbumView from "./AlbumView"; diff --git a/ui/src/components/AlbumView.tsx b/ui/src/components/AlbumView.tsx index 96546c1cb0e745800e2e698d19da7301571c57f4..2efcfc7e453dacffd116e99ad83c38a5aa788607 100644 --- a/ui/src/components/AlbumView.tsx +++ b/ui/src/components/AlbumView.tsx @@ -1,5 +1,4 @@ import AlbumImageView from "./AlbumImageView"; -import React from "react"; import {Album} from "../api/model/Album"; export interface AlbumProps { diff --git a/ui/src/components/ImageMetadataView.tsx b/ui/src/components/ImageMetadataView.tsx index b7a2b9a0267a64191bb2e93ba24c7f072ac2092f..2e2ff6d4a8abbeafdf3654955c8d190697eebeba 100644 --- a/ui/src/components/ImageMetadataView.tsx +++ b/ui/src/components/ImageMetadataView.tsx @@ -1,4 +1,4 @@ -import React, {Fragment} from "react"; +import {Fragment} from "react"; import {ImageMetadata, ratioToTime} from "../metadata/ImageMetadata"; import {ratioToFloat} from "../metadata/Ratio"; import {ExposureMode} from "../metadata/ExposureMode"; diff --git a/ui/src/components/UploadView.tsx b/ui/src/components/UploadView.tsx index 5f4dee2906e0d2fc6a41ef1308590a403cf7ba47..eae8360c5c2b5cec3c60167c74e26944de17b708 100644 --- a/ui/src/components/UploadView.tsx +++ b/ui/src/components/UploadView.tsx @@ -1,4 +1,3 @@ -import React from "react"; import {useUploadImage} from "../api/useUploadImage"; export default function UploadView() { diff --git a/ui/src/index.tsx b/ui/src/index.tsx index ef2edf8ea3fc42258464231e29140c8723458c1e..663cad993bac45f3660000e55e585235bed369ce 100644 --- a/ui/src/index.tsx +++ b/ui/src/index.tsx @@ -1,14 +1,14 @@ -import React from 'react'; -import ReactDOM from 'react-dom'; +import {render} from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; +import {StrictMode} from 'react'; -ReactDOM.render( - <React.StrictMode> - <App /> - </React.StrictMode>, - document.getElementById('root') +render( + <StrictMode> + <App/> + </StrictMode>, + document.getElementById('root') ); // If you want to start measuring performance in your app, pass a function