Skip to content

Commit

Permalink
Remove unused mobileDisplay prop
Browse files Browse the repository at this point in the history
This was already unused in NavBar, and it is newly unused in Sidebar.
  • Loading branch information
victorlin committed Oct 23, 2023
1 parent 700f262 commit de36e48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/components/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ class Main extends React.Component {
displayNarrative={this.props.displayNarrative}
panelsToDisplay={this.props.panelsToDisplay}
narrativeTitle={this.props.narrativeTitle}
mobileDisplay={this.props.mobileDisplay}
navBarHandler={this.toggleSidebar}
/>
<PanelsContainer width={availableWidth} height={availableHeight} left={this.props.sidebarOpen ? sidebarWidth : 0}>
Expand Down
3 changes: 1 addition & 2 deletions src/components/main/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ import { narrativeNavBarHeight } from "../../util/globals";


export const Sidebar = (
{sidebarOpen, width, height, displayNarrative, panelsToDisplay, narrativeTitle, mobileDisplay, navBarHandler}
{sidebarOpen, width, height, displayNarrative, panelsToDisplay, narrativeTitle, navBarHandler}
) => {
return (
<ThemeProvider theme={sidebarTheme}>
<SidebarContainer left={sidebarOpen ? 0 : -1 * width} width={width} height={height}>
<NavBar
sidebar
mobileDisplay={mobileDisplay}
toggleHandler={navBarHandler}
narrativeTitle={displayNarrative ? narrativeTitle : false}
width={width}
Expand Down

0 comments on commit de36e48

Please sign in to comment.