From c140876a3f05d106413300a1fa2346ac90bce7e6 Mon Sep 17 00:00:00 2001
From: Janne Mareike Koschinski <janne@kuschku.de>
Date: Thu, 5 Aug 2021 16:39:09 +0200
Subject: [PATCH] Replace import react

---
 ui/src/components/AlbumImageView.tsx    |  1 -
 ui/src/components/AlbumList.tsx         |  1 -
 ui/src/components/AlbumView.tsx         |  1 -
 ui/src/components/ImageMetadataView.tsx |  2 +-
 ui/src/components/UploadView.tsx        |  1 -
 ui/src/index.tsx                        | 14 +++++++-------
 6 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/ui/src/components/AlbumImageView.tsx b/ui/src/components/AlbumImageView.tsx
index a2de68b..72a4865 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 6b827d3..b2b8b7b 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 96546c1..2efcfc7 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 b7a2b9a..2e2ff6d 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 5f4dee2..eae8360 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 ef2edf8..663cad9 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
-- 
GitLab