From 552aa6fe38d9424b55a4e25803cc2a69d79e5b81 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 28 Feb 2022 21:52:20 +0100 Subject: [PATCH] Cleanup --- src/App.tsx | 14 +------------- src/BucketList.tsx | 15 +++++++++------ src/ObjectInfo.tsx | 7 +------ src/ObjectList.tsx | 27 ++++++++------------------- src/UploadFiles.tsx | 26 +++++++++++--------------- 5 files changed, 30 insertions(+), 59 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index c1f1139..8ac3344 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,11 +1,9 @@ import React from 'react'; -import { S3Client, ListBucketsCommand } from '@aws-sdk/client-s3'; +import { S3Client } from '@aws-sdk/client-s3'; import { HashRouter, - Link, Routes, Route, - PathRouteProps, } from "react-router-dom"; import BucketList from './BucketList'; import { ObjectList1, ObjectList2 } from './ObjectList'; @@ -30,10 +28,6 @@ class App extends React.Component { client: null, }; - constructor(props: AppProps) { - super(props); - } - handleChangeAccessKeyId = (e: React.ChangeEvent): void => { this.setState({accessKeyId: e.currentTarget.value}); } @@ -89,17 +83,11 @@ class App extends React.Component { Access key ID - - Hello! - Secret access key - - world! - -