Skip to content

Commit

Permalink
Remove unused component in FullscreenButton, fix border resizing on f…
Browse files Browse the repository at this point in the history
…ocus in Explorer Tabs
  • Loading branch information
ljowen committed Jan 23, 2025
1 parent 41c8153 commit 22d4930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions lib/ReactViews/ExplorerWindow/Tabs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ const ButtonTab = styled.button`
background: transparent;
color: ${props.theme.dark};
border: 1px solid transparent;
&:hover,
&:focus {
background: ${props.theme.textLight};
Expand Down
11 changes: 1 addition & 10 deletions lib/ReactViews/SidePanel/FullScreenButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ class FullScreenButton extends React.Component {
);
}

renderButtonText() {
const btnText = this.props.btnText ? this.props.btnText : null;
if (this.props.viewState.isMapFullScreen) {
return <span>{btnText}</span>;
}
}

render() {
const { t } = this.props;
return (
Expand Down Expand Up @@ -110,9 +103,7 @@ class FullScreenButton extends React.Component {
/>
)
}
>
{this.renderButtonText()}
</Button>
></Button>
</div>
);
}
Expand Down

0 comments on commit 22d4930

Please sign in to comment.