Fix server url

This commit is contained in:
Narek Amirbekian
2022-03-14 21:02:18 -07:00
parent 1ed9423530
commit db7619fa7a
2 changed files with 4 additions and 7 deletions

View File

@@ -11,8 +11,8 @@ import "./server-dashboard.css";
import { timeSince } from "../../util/timeSince"; import { timeSince } from "../../util/timeSince";
import PaginationFooter from "../PaginationFooter/PaginationFooter"; import PaginationFooter from "../PaginationFooter/PaginationFooter";
const AccessServerButton = ({ userName, serverName }) => ( const AccessServerButton = ({ url }) => (
<a href={`/user/${userName}/${serverName || ""}`}> <a href={url || ""}>
<button className="btn btn-primary btn-xs" style={{ marginRight: 20 }}> <button className="btn btn-primary btn-xs" style={{ marginRight: 20 }}>
Access Server Access Server
</button> </button>
@@ -401,10 +401,7 @@ const ServerDashboard = (props) => {
serverName={server.name} serverName={server.name}
userName={user.name} userName={user.name}
/> />
<AccessServerButton <AccessServerButton url={server.url} />
serverName={server.name}
userName={user.name}
/>
</> </>
) : ( ) : (
// Start Single-user server // Start Single-user server

File diff suppressed because one or more lines are too long