mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
components/toolbar: move from utils
This is a better home.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// Copyright (c) 2022 The Pybricks Authors
|
||||
|
||||
import React, { AriaAttributes, KeyboardEventHandler, useCallback } from 'react';
|
||||
import { FocusAction } from './react';
|
||||
import { FocusAction } from '../../utils/react';
|
||||
|
||||
type ToolbarProps = Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> & {
|
||||
/** CSS class name for the tooltip element. */
|
||||
@@ -24,8 +24,8 @@ import {
|
||||
useTreeEnvironment,
|
||||
} from 'react-complex-tree';
|
||||
import { useDispatch } from 'react-redux';
|
||||
import Toolbar from '../components/toolbar/Toolbar';
|
||||
import { useSelector } from '../reducers';
|
||||
import Toolbar from '../utils/Toolbar';
|
||||
import { isMacOS } from '../utils/os';
|
||||
import { useRovingTabIndex } from '../utils/react';
|
||||
import { TreeItemContext, TreeItemData, renderers } from '../utils/tree-renderer';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import { ButtonGroup } from '@blueprintjs/core';
|
||||
import React, { useRef } from 'react';
|
||||
import UtilsToolbar from '../utils/Toolbar';
|
||||
import UtilsToolbar from '../components/toolbar/Toolbar';
|
||||
import { useRovingTabIndex } from '../utils/react';
|
||||
import BluetoothButton from './buttons/bluetooth/BluetoothButton';
|
||||
import FlashButton from './buttons/flash/FlashButton';
|
||||
|
||||
@@ -5,7 +5,7 @@ import { cleanup } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import React, { useRef } from 'react';
|
||||
import { testRender } from '../../test';
|
||||
import Toolbar from './Toolbar';
|
||||
import Toolbar from '../components/toolbar/Toolbar';
|
||||
import { useRovingTabIndex } from './react';
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user