mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
util: drop preventBrowserNativeContextMenu
This is done once at the top-level app, so is no longer needed.
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
|
||||
import { ButtonGroup } from '@blueprintjs/core';
|
||||
import React from 'react';
|
||||
import { preventBrowserNativeContextMenu } from '../utils/react';
|
||||
import BluetoothButton from './buttons/bluetooth/BluetoothButton';
|
||||
import FlashButton from './buttons/flash/FlashButton';
|
||||
import ReplButton from './buttons/repl/ReplButton';
|
||||
@@ -14,11 +13,7 @@ import './toolbar.scss';
|
||||
|
||||
const Toolbar: React.VFC = (_props) => {
|
||||
return (
|
||||
<div
|
||||
role="toolbar"
|
||||
onContextMenu={preventBrowserNativeContextMenu}
|
||||
className="pb-toolbar"
|
||||
>
|
||||
<div role="toolbar" className="pb-toolbar">
|
||||
<ButtonGroup className="pb-toolbar-group pb-align-left">
|
||||
<FlashButton />
|
||||
<BluetoothButton />
|
||||
|
||||
Reference in New Issue
Block a user