master
Tudor Stanciu 2020-05-12 02:48:18 +03:00
parent 49ebb12757
commit e0cb726a69
4 changed files with 6 additions and 5 deletions

View File

@ -12,7 +12,7 @@ import SessionContainer from "../features/session/components/SessionContainer";
function App() { function App() {
return ( return (
<div className="container-fluid"> <div>
<Header /> <Header />
<Switch> <Switch>
<Route exact path="/" component={HomePage} /> <Route exact path="/" component={HomePage} />

View File

@ -1,5 +1,5 @@
import { get } from "../../api/axiosApi"; import { get } from "../../api/axiosApi";
const baseUrl = process.env.REVERSE_PROXY_API_URL + "/server"; const baseUrl = `${process.env.REVERSE_PROXY_API_URL}/server`;
const getServerSessions = () => get(`${baseUrl}/sessions`); const getServerSessions = () => get(`${baseUrl}/sessions`);

View File

@ -30,8 +30,8 @@ const SessionListComponent = ({ sessions }) => {
<ExpansionPanel key={session.sessionId}> <ExpansionPanel key={session.sessionId}>
<ExpansionPanelSummary <ExpansionPanelSummary
expandIcon={<ExpandMoreIcon />} expandIcon={<ExpandMoreIcon />}
aria-controls="panel1a-content" aria-controls={`panel-${session.sessionId}-content`}
id="panel1a-header" id={`panel-${session.sessionId}-header`}
> >
<SessionSummary session={session} /> <SessionSummary session={session} />
</ExpansionPanelSummary> </ExpansionPanelSummary>

View File

@ -1,6 +1,7 @@
#app { #app {
max-width: 850px;
margin: 0 auto; margin: 0 auto;
padding-left: 50px;
padding-right: 50px;
} }
nav { nav {