updating bootstrap to v5

This commit is contained in:
Calvin Jhunjhuwala
2025-10-17 16:28:07 -07:00
parent c83fc47941
commit ce49c8b6ba
20 changed files with 371 additions and 621 deletions

View File

@@ -62,8 +62,8 @@ export function CurlButton ({selectedConnection, currentBody}: CurlButtonProps)
return <>
<button
className="btn btn-outline-secondary curl"
data-toggle="modal"
data-target="#wstool-1-curl"
data-bs-toggle="modal"
data-bs-target="#wstool-1-curl"
title={translate("cURL Syntax")}
onClick={() => setShowCurlModal(true)}
>

View File

@@ -62,8 +62,8 @@ export function PermalinkButton ({currentBody, selectedConnection}: PermaLinkBut
return <>
<button
className="btn btn-outline-secondary permalink"
data-toggle="modal"
data-target="#wstool-1-permalink"
data-bs-toggle="modal"
data-bs-target="#wstool-1-permalink"
title={translate("Permalink")}
onClick={() => setShowPermalinkModal(true)}
>

View File

@@ -146,8 +146,8 @@ export default function DevTools() {
<button
className="nav-link active dev-tools-tab"
id="explorers-tab"
data-toggle="tab"
data-target="#explorers"
data-bs-toggle="tab"
data-bs-target="#explorers"
role="tab"
aria-controls="explorers"
aria-selected="true"
@@ -159,8 +159,8 @@ export default function DevTools() {
<button
className="nav-link dev-tools-tab"
id="api-access-tab"
data-toggle="tab"
data-target="#api-access"
data-bs-toggle="tab"
data-bs-target="#api-access"
role="tab"
aria-controls="api-access"
aria-selected="false"
@@ -172,8 +172,8 @@ export default function DevTools() {
<button
className="nav-link dev-tools-tab"
id="other-tab"
data-toggle="tab"
data-target="#other"
data-bs-toggle="tab"
data-bs-target="#other"
role="tab"
aria-controls="other"
aria-selected="false"

View File

@@ -238,7 +238,7 @@ export function WebsocketApiTool() {
className="btn-toolbar justify-content-between pt-4"
role="toolbar"
>
<div className="btn-group mr-3" role="group">
<div className="btn-group me-3" role="group">
<button
className="btn btn-outline-secondary send-request"
onClick={() => sendWebSocketMessage(currentBody)}
@@ -259,8 +259,8 @@ export function WebsocketApiTool() {
connected ? "btn-success" : "btn-outline-secondary"
} ${connectionError ?? "btn-danger"}`}
onClick={openConnectionModal}
data-toggle="modal"
data-target="#wstool-1-connection-settings"
data-bs-toggle="modal"
data-bs-target="#wstool-1-connection-settings"
>
{`${selectedConnection.shortname}${
connected ? ` (${translate('Connected')})` : ` (${translate('Not Connected')})`

View File

@@ -184,7 +184,7 @@ function TestCredentials({selectedFaucet, translate}) {
setBalance,
setSequence,
translate)
} className="btn btn-primary mr-2 mb-2">
} className="btn btn-primary me-2 mb-2">
{`${translate('resources.dev-tools.faucet.cred-btn.part1', 'Generate ')}${selectedFaucet.shortName}${translate('resources.dev-tools.faucet.cred-btn.part2', ' credentials')}`}
</button>
</div>