refactor: remove unused code and packages

This commit is contained in:
Vojtech Simetka
2021-04-02 15:12:47 +02:00
parent 009de5924e
commit 9838aa70c8
4 changed files with 521 additions and 3446 deletions
+519 -3426
View File
File diff suppressed because it is too large Load Diff
+1 -2
View File
@@ -37,8 +37,7 @@
"react-feather": "^2.0.9",
"react-identicons": "^1.2.5",
"react-router-dom": "^5.2.0",
"react-syntax-highlighter": "^15.4.3",
"web3": "^1.3.4"
"react-syntax-highlighter": "^15.4.3"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.11.10",
-8
View File
@@ -8,14 +8,6 @@ import CssBaseline from '@material-ui/core/CssBaseline';
import BaseRouter from './routes/routes';
import { lightTheme, darkTheme } from './theme';
declare global {
interface Window {
ethereum: {};
web3: {};
}
}
function App() {
const [themeMode, toggleThemeMode] = useState('light');
+1 -10
View File
@@ -6,7 +6,7 @@ import { Card, CardContent, Typography } from '@material-ui/core/';
import EthereumAddress from '../components/EthereumAddress';
import { Skeleton } from '@material-ui/lab';
import type { ChequebookAddressResponse } from '@ethersphere/bee-js';
import type { ChequebookAddressResponse, NodeAddresses } from '@ethersphere/bee-js';
const useStyles = makeStyles((theme: Theme) =>
createStyles({
@@ -28,15 +28,6 @@ const useStyles = makeStyles((theme: Theme) =>
}),
);
interface NodeAddresses {
overlay: string,
underlay: string[],
ethereum: string,
public_key: string,
pss_public_key: string
}
interface IProps{
nodeAddresses: NodeAddresses | null,
isLoadingNodeAddresses: boolean,