Skip to content

Commit

Permalink
Added ids for buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
sergesoroka committed Mar 27, 2024
1 parent 30e6766 commit 95654ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ import "./Button.css";

export default function Button({ label, disabled }) {
return (
<button className="buttonMenu" disabled={disabled ? true : false}>
<button
id={label}
className="buttonMenu"
disabled={disabled ? true : false}
>
{label == "New" && <NewFileIcon />}
{label == "Make a copy" && (
<CopyFileIcon disabled={disabled ? true : false} />
Expand Down

0 comments on commit 95654ea

Please sign in to comment.