Skip to content

Commit

Permalink
feat(#141): put public key in accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Dec 2, 2024
1 parent bf7c547 commit b6ab1e6
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions src/components/Shell/PeerListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
import { useState } from 'react'
import Box from '@mui/material/Box'
import ListItemText from '@mui/material/ListItemText'
import SyncAltIcon from '@mui/icons-material/SyncAlt'
import EnhancedEncryptionIcon from '@mui/icons-material/EnhancedEncryption'
import NetworkPingIcon from '@mui/icons-material/NetworkPing'
import ListItem from '@mui/material/ListItem'
import Tooltip from '@mui/material/Tooltip'
import CircularProgress from '@mui/material/CircularProgress'
import NoEncryptionIcon from '@mui/icons-material/NoEncryption'
import SyncAltIcon from '@mui/icons-material/SyncAlt'
import Accordion from '@mui/material/Accordion'
import AccordionDetails from '@mui/material/AccordionDetails'
import AccordionSummary from '@mui/material/AccordionSummary'
import Box from '@mui/material/Box'
import Button from '@mui/material/Button'
import CircularProgress from '@mui/material/CircularProgress'
import Dialog from '@mui/material/Dialog'
import DialogActions from '@mui/material/DialogActions'
import DialogContent from '@mui/material/DialogContent'
import DialogContentText from '@mui/material/DialogContentText'
import DialogTitle from '@mui/material/DialogTitle'
import NoEncryptionIcon from '@mui/icons-material/NoEncryption'
import EnhancedEncryptionIcon from '@mui/icons-material/EnhancedEncryption'
import ListItem from '@mui/material/ListItem'
import ListItemText from '@mui/material/ListItemText'
import Tooltip from '@mui/material/Tooltip'
import Typography from '@mui/material/Typography'
import { useState } from 'react'

import { AudioVolume } from 'components/AudioVolume'
import { PeerNameDisplay } from 'components/PeerNameDisplay'
import { PublicKey } from 'components/PublicKey'
import { PeerConnectionType } from 'lib/PeerRoom'
import {
Peer,
AudioChannel,
AudioChannelName,
Peer,
PeerVerificationState,
} from 'models/chat'
import { PeerConnectionType } from 'lib/PeerRoom'

import { PeerDownloadFileButton } from './PeerDownloadFileButton'

Expand Down Expand Up @@ -158,8 +161,14 @@ export const PeerListItem = ({
</Box>
</DialogTitle>
<DialogContent>
<DialogContentText>Their public key:</DialogContentText>
<PublicKey publicKey={peer.publicKey} />
<Accordion>
<AccordionSummary>
<Typography>Their public key</Typography>
</AccordionSummary>
<AccordionDetails>
<PublicKey publicKey={peer.publicKey} />
</AccordionDetails>
</Accordion>
</DialogContent>
<DialogActions>
<Button onClick={handleDialogClose}>Close</Button>
Expand Down

0 comments on commit b6ab1e6

Please sign in to comment.