Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 900c36b

Browse files
committed
Add A Fix For New Subpages To View Header
1 parent 8e4f27d commit 900c36b

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

‎src/components/MainComponent/Main.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,7 @@ import {
5858
//renderBlock, renderMark,
5959
} from "components/SlateJS";
6060

61-
import {
62-
BrowserView,
63-
isBrowser,
64-
isMobile,
65-
isSafari
66-
} from "react-device-detect";
61+
import { BrowserView, isBrowser, isMobile } from "react-device-detect";
6762
import FormControl from "@material-ui/core/FormControl";
6863
import Select from "@material-ui/core/Select";
6964
import MenuItem from "@material-ui/core/MenuItem";

‎src/components/TopbarComponent/Topbar.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ class _TopbarComponent extends Component {
5151
super(props);
5252

5353
const isHomePage = this.props.match.path === "/";
54+
const hpPage = this.props.match.path === "/hp";
55+
const gotPage = this.props.match.path === "/got";
56+
5457
let tabValue = 0;
55-
if (isHomePage) {
58+
if (isHomePage||hpPage||gotPage) {
5659
this.renderRightContainer = this.renderRightContainerMain;
5760
tabValue = 1;
5861
} else {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /