diff --git a/.gitignore b/.gitignore index ea2b4f5..b090e28 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .env +.vscode/* target diff --git a/docker-compose.yml b/docker-compose.yml index f386437..684a1d9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: context: frontend dockerfile: dev.Dockerfile environment: - BACKEND_ADDRESS: http://hubbit-backend:8080 + BACKEND_ADDRESS: "http://hubbit-backend:8080" ports: - ${FRONTEND_PORT}:3000 volumes: diff --git a/frontend/src/pages/index.tsx b/frontend/src/pages/index.tsx index 6ee8227..676cb07 100644 --- a/frontend/src/pages/index.tsx +++ b/frontend/src/pages/index.tsx @@ -91,14 +91,27 @@ const Home: NextPage> = ({ data }) => { return ; } + const addRatIfNoSessions = (sessions: CurrentSessionFragment[]) => { + if (sessions.length === 0) { + return [ + { + user: { cid: 'simongre', nick: 'Hubbenråttan', groups: [{ name: 'ratIT', prettyName: '🐀' }]}, + startTime: new Date().toISOString(), + id: 'rat', + }, + ]; + }; + return sessions; + }; + return ( <> {createTitle('Who is in the Hubb?')}
- - + +
);