fix: Remove Bootstrap JS in sidebars (#1434)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
Jay Sitter 2023-06-21 08:05:32 -04:00 committed by GitHub
parent 3db4fdddcd
commit 1d0e96dbc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 26 deletions

View file

@ -570,8 +570,6 @@ export class Home extends Component<any, HomeState> {
data-tippy-content={ data-tippy-content={
subscribedCollapsed ? i18n.t("expand") : i18n.t("collapse") subscribedCollapsed ? i18n.t("expand") : i18n.t("collapse")
} }
data-bs-toggle="collapse"
data-bs-target="#sidebarSubscribedBody"
aria-expanded="true" aria-expanded="true"
aria-controls="sidebarSubscribedBody" aria-controls="sidebarSubscribedBody"
> >
@ -582,9 +580,9 @@ export class Home extends Component<any, HomeState> {
</button> </button>
)} )}
</header> </header>
{!subscribedCollapsed && (
<div <div
id="sidebarSubscribedBody" id="sidebarSubscribedBody"
className="collapse show"
aria-labelledby="sidebarSubscribedHeader" aria-labelledby="sidebarSubscribedHeader"
> >
<div className="card-body"> <div className="card-body">
@ -600,6 +598,7 @@ export class Home extends Component<any, HomeState> {
</ul> </ul>
</div> </div>
</div> </div>
)}
</> </>
); );
} }

View file

@ -42,13 +42,11 @@ export class SiteSidebar extends Component<SiteSidebarProps, SiteSidebarState> {
)} )}
</header> </header>
<div {!this.state.collapsed && (
id="sidebarInfoBody" <div id="sidebarInfoBody" aria-labelledby="sidebarInfoHeader">
className="collapse show"
aria-labelledby="sidebarInfoHeader"
>
<div className="card-body">{this.siteInfo()}</div> <div className="card-body">{this.siteInfo()}</div>
</div> </div>
)}
</section> </section>
</div> </div>
); );