+
+
+
+
+
+ >
+ )
+}
+
+export default ServerSelectView
diff --git a/src/components/app-body/index.js b/src/components/app-body/index.js
index 8cbdea9..23e58f9 100644
--- a/src/components/app-body/index.js
+++ b/src/components/app-body/index.js
@@ -15,12 +15,13 @@ import GetBalance from './balance'
import Wallet from './bch-wallet'
import Placeholder2 from './placeholder2'
import Placeholder3 from './placeholder3'
-import ServerSelectView from './servers/select-server-view'
-import SelectServerButton from './servers/select-server-button'
+// import ServerSelectView from './servers/select-server-view'
+// import SelectServerButton from './servers/select-server-button'
import BchSend from './bch-send'
import SlpTokens from './slp-tokens'
import SweepWif from './sweep/index.js'
import SignMessage from './sign/index.js'
+import ServerSelectView from './configuration/select-server-view'
function AppBody (props) {
// Dependency injection through props
@@ -39,9 +40,10 @@ function AppBody (props) {
} />
} />
} />
+ } />
{/** Show in all paths except the servers view */}
- {appData.currentPath !== '/servers' && }
+ {/* {appData.currentPath !== '/servers' && } */}
>
)
}
diff --git a/src/components/app-body/servers/select-server-view.js b/src/components/app-body/servers/select-server-view.js
deleted file mode 100644
index c5e5026..0000000
--- a/src/components/app-body/servers/select-server-view.js
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- This component is a View that allows the user to select a back end server
- from a list of servers.
-*/
-
-// Global npm libraries
-import React from 'react'
-import { Container, Row, Col, Button } from 'react-bootstrap'
-
-function ServerSelectView (props) {
- const { appData } = props
- const selectedServer = appData.serverUrl // Selected server
- const servers = appData.servers // List of servers
-
- // Update location ref after server url changes
- const handleReloadServer = (event) => {
- const target = event.target.id
- console.log('server target: ', target)
- appData.updateLocalStorage({ serverUrl: target })
- // Reload the page
- window.location.href = '/'
- }
-
- return (
- <>
-
-
-
-
- Select Alternative Server
-
-
- Select an alternative server below. The app will reload and use
- the selected server.
-
-
-
-
-
- {
- /** Map all server data and render a row for each server */
- servers.map((server, i) => {
- // Background color for each row
- const isEven = i % 2
- const backgroundColor = isEven ? '#eee' : '#fff'
-
- return (
-