Skip to content

Commit

Permalink
Cleanup hide acsb on standalone page (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
viphan007 authored Sep 4, 2024
1 parent 80a9fb5 commit 28ed666
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
8 changes: 0 additions & 8 deletions src/styles/acsb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,3 @@
width: 40px;
height: 40px;
}

body .acsb-trigger.acsb-ready {
display: none !important;
}

body.ascb-show .acsb-trigger.acsb-ready {
display: block !important;
}
9 changes: 0 additions & 9 deletions src/templates/PageLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const PageLayout = props => {
children,
themeColor,
h2FontSize,
isStandalone,
extraData,
locale,
localizedPages,
Expand Down Expand Up @@ -110,14 +109,6 @@ const PageLayout = props => {
}
}, [pathname])

useEffect(() => {
if (isStandalone) {
document.body.classList.remove('ascb-show')
} else {
document.body.classList.add('ascb-show')
}
}, [isStandalone])

useEffect(() => {
if (typeof window !== 'undefined') {
const hash = window.location.hash
Expand Down

0 comments on commit 28ed666

Please sign in to comment.