| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | /** |
| 2 | 2 | * The Quick Access React App for Spectra Enhanced Editor. |
| 3 | 3 | */ |
| 4 | -import { createRoot } from 'react-dom/client'; | |
| 4 | +import { createRoot } from '@wordpress/element'; | |
| 5 | 5 | import Sidebar from './components/Sidebar'; |
| 6 | 6 | |
| 7 | 7 | // Toggles the sidebar based on the url parameters. |
| 8 | 8 | export const toggleSidebar = ( url ) => { |
| @@ -29,9 +29,9 @@ | ||
| 29 | 29 | return; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | const blockElement = document.querySelector( |
| 33 | - '.srfm-ee-quick-access__sidebar--blocks--block' | |
| 33 | + '.srfm-ee-quick-access-container' | |
| 34 | 34 | ); |
| 35 | 35 | if ( blockElement ) { |
| 36 | 36 | clearInterval( interval ); |
| 37 | 37 | return; |