Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'SidebarToggleButton' is not exported #6910

Closed
despatates opened this issue Nov 26, 2021 · 1 comment · Fixed by #6911
Closed

'SidebarToggleButton' is not exported #6910

despatates opened this issue Nov 26, 2021 · 1 comment · Fixed by #6911
Labels

Comments

@despatates
Copy link
Contributor

Hi guys,

What you were expecting:

Since react-admin v3.19.0, you mention in the documentation:

To make it easier to customize, we export some of the components and hooks used by the <AppBar>:

  • <LoadingIndicator>: A CircularProgress bound to the dataProvider activity.
  • <SidebarToggleButton>: An IconButton used to toggle the <Sidebar>.
  • useToggleSidebar: A hook that returns the sidebar open state and a function to toggle it. Used internally by <SidebarToggleButton>.

What happened instead:

When I want to use it to make a custom AppBar, I have a compilation error:

import { SidebarToggleButton } from 'react-admin';
Attempted import error: 'SidebarToggleButton' is not exported from 'react-admin'.

Environment

  • React-admin version: 3.19.2
  • Browser: Chrome 96.0.4664.45
@WiXSL WiXSL added the bug label Nov 26, 2021
@WiXSL
Copy link
Contributor

WiXSL commented Nov 26, 2021

You are correct.
I'm marking this as a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants