Skip to content

Commit

Permalink
extend impressum to lobby and room too
Browse files Browse the repository at this point in the history
  • Loading branch information
N7Remus committed Sep 27, 2024
1 parent c63a6c8 commit 0340230
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/controlbuttons/ImpressumButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ImpressumButton: React.FC = () => {
return (
<div>
<ImpressumContainer>
<Button href={impressumUrl} variant="text" color="primary" title='Privacy info' >
<Button target="_blank" href={impressumUrl} variant="text" color="primary" title='Privacy info' >
<InfoIcon />

</Button>
Expand Down
3 changes: 2 additions & 1 deletion src/components/helpdialog/HelpDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { uiActions } from '../../store/slices/uiSlice';
import { closeLabel } from '../translated/translatedComponents';
import ShortcutKeys from './ShortcutKeys';
import GenericDialog from '../genericdialog/GenericDialog';
import ImpressumButton from '../controlbuttons/ImpressumButton';

const HelpDialog = (): JSX.Element => {
const dispatch = useAppDispatch();
Expand All @@ -21,7 +22,7 @@ const HelpDialog = (): JSX.Element => {
open={ helpOpen }
onClose={ handleCloseHelp }
maxWidth='xs'
content={ <ShortcutKeys /> }
content={ <><ShortcutKeys /><ImpressumButton /></> }
actions={
<Button
onClick={ handleCloseHelp }
Expand Down
18 changes: 10 additions & 8 deletions src/views/landingpage/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import GenericDialog from '../../components/genericdialog/GenericDialog';
import StyledBackground from '../../components/StyledBackground';
import PrecallTitle from '../../components/precalltitle/PrecallTitle';
import { QRCode } from 'react-qrcode-logo';
import ImpressumButton from '../../components/controlbuttons/ImpressumButton';

const LandingPage = (): JSX.Element => {
const navigate = useNavigate();
Expand All @@ -33,14 +34,15 @@ const LandingPage = (): JSX.Element => {

}
actions={
<Button
onClick={onClicked}
variant='contained'
disabled={!roomId}
size='small'
>
{ joinLabel()}
</Button>
<><ImpressumButton />
<Button
onClick={onClicked}
variant='contained'
disabled={!roomId}
size='small'
>
{ joinLabel()}
</Button></>
}
/>

Expand Down

0 comments on commit 0340230

Please sign in to comment.