+
+
+
+
+
+ >
+ )
+}
+
+export default ServerSelectView
diff --git a/src/components/app-body/index.js b/src/components/app-body/index.js
index b7c4092..05b790e 100644
--- a/src/components/app-body/index.js
+++ b/src/components/app-body/index.js
@@ -14,8 +14,7 @@ import { Route, Routes } from 'react-router-dom'
import GetBalance from './balance'
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 './configuration/select-server-view'
function AppBody (props) {
// Dependency injection through props
@@ -28,10 +27,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 (
-