Skip to content

Commit

Permalink
Merge pull request #690 from kmkristof/master
Browse files Browse the repository at this point in the history
Added a link to the favicon
  • Loading branch information
mcserep authored Feb 3, 2024
2 parents cc9a8fe + 56420ad commit b2b86fe
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions webgui-new/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Button } from '@mui/material';
import Head from 'next/head';
import { useRouter } from 'next/router';
import React, { useContext } from 'react';
import { removeStore } from 'utils/store';
Expand Down Expand Up @@ -29,18 +30,24 @@ const Home = (): JSX.Element => {
};

return (
<SC.OuterContainer>
<SC.InnerContainer>
<SC.Title>{t('index.title')}</SC.Title>
{appCtx.workspaces.length
? appCtx.workspaces.map((ws) => (
<Button key={ws.id} onClick={() => loadWorkspace(ws.id as string)}>
{ws.id}
</Button>
))
: ''}
</SC.InnerContainer>
</SC.OuterContainer>
<>
<Head>
<link rel="icon" href="favicon.ico" />
</Head>
<SC.OuterContainer>
<SC.InnerContainer>
<SC.Title>{t('index.title')}</SC.Title>
{appCtx.workspaces.length
? appCtx.workspaces.map((ws) => (
<Button key={ws.id} onClick={() => loadWorkspace(ws.id as string)}>
{ws.id}
</Button>
))
: ''}
</SC.InnerContainer>
</SC.OuterContainer>
</>

);
};

Expand Down

0 comments on commit b2b86fe

Please sign in to comment.