Skip to content

Commit

Permalink
Remove deprecated prop explorerOpen from App
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed May 25, 2023
1 parent 26dac7d commit b50c158
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ when H5Web is embeded inside another app.
<App sidebarOpen={false} />
```

> This replaces prop `explorerOpen`, which is now deprecated and will be removed
> This replaces prop `explorerOpen`, which was deprecated in v7.1.0 and removed
> in v8.0.0.
#### `initialPath?: string` (optional)
Expand Down
5 changes: 1 addition & 4 deletions packages/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import VisConfigProvider from './VisConfigProvider';
import Visualizer from './visualizer/Visualizer';

interface Props {
/** @deprecated */
explorerOpen?: boolean;
sidebarOpen?: boolean;
initialPath?: string;
getFeedbackURL?: (context: FeedbackContext) => string;
Expand All @@ -28,8 +26,7 @@ interface Props {

function App(props: Props) {
const {
explorerOpen = true, // eslint-disable-line etc/no-deprecated
sidebarOpen: initialSidebarOpen = explorerOpen, // eslint-disable-line etc/no-deprecated
sidebarOpen: initialSidebarOpen = true,
initialPath = '/',
getFeedbackURL,
disableDarkMode,
Expand Down

0 comments on commit b50c158

Please sign in to comment.