Skip to content

Commit

Permalink
just log when the UI button is clicked
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
mvidner committed Jan 17, 2025
1 parent a6b50da commit fbe38a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/src/components/storage/DriveEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,14 @@ const PartitionsNoContentSelector = () => {
};

const PartitionsWithContentSelector = ({ drive }) => {
console.log("DRIVEVV:", drive);
const menuRef = useRef();
const toggleMenuRef = useRef();
const [isOpen, setIsOpen] = useState(false);
const onToggle = () => setIsOpen(!isOpen);
const onDelete = () => {
console.log("DELETE CLICKED YAY");
};

return (
<MenuContainer
Expand Down Expand Up @@ -618,6 +622,7 @@ const PartitionsWithContentSelector = ({ drive }) => {
icon={<Icon name="delete" size="xs" aria-label={"Edit"} />}
actionId={`delete-${partition.mountPath}`}
aria-label={`Delete ${partition.mountPath}`}
onClick={onDelete}
/>
</>
}
Expand Down

0 comments on commit fbe38a2

Please sign in to comment.