Skip to content

Commit

Permalink
feat: Improve accessibility and clean up code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ctoth committed Dec 28, 2024
1 parent 9f2b3a8 commit d41903a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/FileTransfer/History.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface TransferHistoryProps {

const History: React.FC<TransferHistoryProps> = ({ history }) => {
return (
<div className="transfer-history">
<div className="transfer-history" aria-live="polite">
<h4>Transfer History</h4>
<ul>
{history.map((entry, index) => (
Expand Down
6 changes: 3 additions & 3 deletions src/components/FileTransfer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const FileTransferUI: React.FC<FileTransferUIProps> = ({ client, expanded }) =>
return (
<div className={`file-transfer-ui ${expanded ? "expanded" : "collapsed"}`}>
<h3>File Transfer</h3>

<Controls
onFileChange={setSelectedFile}
onRecipientChange={setRecipient}
Expand All @@ -196,8 +196,8 @@ const FileTransferUI: React.FC<FileTransferUIProps> = ({ client, expanded }) =>
/>

{(sendProgress > 0 || receiveProgress > 0) && (
<ProgressBar
progress={sendProgress > 0 ? sendProgress : receiveProgress}
<ProgressBar
progress={sendProgress > 0 ? sendProgress : receiveProgress}
/>
)}

Expand Down

0 comments on commit d41903a

Please sign in to comment.