Skip to content

Commit

Permalink
feat(shell): show chitchatter link in embedded environments
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Oct 12, 2023
1 parent 92c04d2 commit 6ab7a3e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/components/Shell/Shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ import {
import CssBaseline from '@mui/material/CssBaseline'
import { ThemeProvider, createTheme } from '@mui/material/styles'
import Box from '@mui/material/Box'
import Typography from '@mui/material/Typography'
import { AlertColor } from '@mui/material/Alert'
import MuiDrawer from '@mui/material/Drawer'
import Link from '@mui/material/Link'
import { useWindowSize } from '@react-hook/window-size'

import { ShellContext } from 'contexts/ShellContext'
Expand Down Expand Up @@ -394,6 +396,23 @@ export const Shell = ({ appNeedsUpdate, children, userPeerId }: ShellProps) => {
peerAudios={peerAudios}
connectionTestResults={connectionTestResults}
/>
{isEmbedded ? (
<Typography
variant="caption"
sx={theme => ({
padding: '1em',
textAlign: 'center',
})}
>
This conversation is powered by{' '}
<Link
href="https://github.com/jeremyckahn/chitchatter"
target="_blank"
>
Chitchatter
</Link>
</Typography>
) : null}
</MuiDrawer>
<QRCodeDialog
isOpen={isQRCodeDialogOpen}
Expand Down

1 comment on commit 6ab7a3e

@vercel
Copy link

@vercel vercel bot commented on 6ab7a3e Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

chitchatter – ./

chitchatter.vercel.app
chitchatter-git-main-jeremyckahn.vercel.app
chitchatter-jeremyckahn.vercel.app

Please sign in to comment.