refactor: remove unused code and packages
This commit is contained in:
Generated
+519
-3426
File diff suppressed because it is too large
Load Diff
+1
-2
@@ -37,8 +37,7 @@
|
|||||||
"react-feather": "^2.0.9",
|
"react-feather": "^2.0.9",
|
||||||
"react-identicons": "^1.2.5",
|
"react-identicons": "^1.2.5",
|
||||||
"react-router-dom": "^5.2.0",
|
"react-router-dom": "^5.2.0",
|
||||||
"react-syntax-highlighter": "^15.4.3",
|
"react-syntax-highlighter": "^15.4.3"
|
||||||
"web3": "^1.3.4"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@testing-library/jest-dom": "^5.11.10",
|
"@testing-library/jest-dom": "^5.11.10",
|
||||||
|
|||||||
@@ -8,14 +8,6 @@ import CssBaseline from '@material-ui/core/CssBaseline';
|
|||||||
import BaseRouter from './routes/routes';
|
import BaseRouter from './routes/routes';
|
||||||
import { lightTheme, darkTheme } from './theme';
|
import { lightTheme, darkTheme } from './theme';
|
||||||
|
|
||||||
declare global {
|
|
||||||
interface Window {
|
|
||||||
ethereum: {};
|
|
||||||
web3: {};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [themeMode, toggleThemeMode] = useState('light');
|
const [themeMode, toggleThemeMode] = useState('light');
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { Card, CardContent, Typography } from '@material-ui/core/';
|
|||||||
import EthereumAddress from '../components/EthereumAddress';
|
import EthereumAddress from '../components/EthereumAddress';
|
||||||
import { Skeleton } from '@material-ui/lab';
|
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) =>
|
const useStyles = makeStyles((theme: Theme) =>
|
||||||
createStyles({
|
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{
|
interface IProps{
|
||||||
nodeAddresses: NodeAddresses | null,
|
nodeAddresses: NodeAddresses | null,
|
||||||
isLoadingNodeAddresses: boolean,
|
isLoadingNodeAddresses: boolean,
|
||||||
|
|||||||
Reference in New Issue
Block a user