Skip to content

Commit

Permalink
fix some tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwiterrion committed Oct 31, 2024
1 parent d83e988 commit c7e3fdc
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions otoroshi/javascript/src/pages/ServiceApiKeysPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import DesignerSidebar from './RouteDesigner/Sidebar';
import Loader from '../components/Loader';
import { firstLetterUppercase } from '../util';

import { Tooltip as ReactTooltip } from 'react-tooltip'

const FIELDS_SELECTOR = "otoroshi-fields-selector";

const CORE_FIELDS = [
Expand Down Expand Up @@ -93,14 +95,11 @@ class ApikeyBearer extends Component {
<div className="row mb-3">
<label className="col-sm-2 col-form-label">
Apikey Bearer{' '}
<i
className="far fa-question-circle"
data-bs-toggle="tooltip"
data-bs-placement="top"
title=""
data-bs-original-title="Your apikey as a bearer to pass in the Authorization header"
aria-label="Your apikey as a bearer to pass in the Authorization header"
></i>
<span>
<i className="far fa-question-circle" data-tooltip-content="Your apikey as a bearer to pass in the Authorization header"
data-tooltip-id="apikey-bearer" />
<ReactTooltip id="apikey-bearer" />
</span>
</label>
<div className="col-sm-10">
<div className="input-group">
Expand Down Expand Up @@ -142,7 +141,7 @@ class ApikeyBearer extends Component {
)}
</div>
</div>
</div>
</div >
);
}
}
Expand Down Expand Up @@ -176,14 +175,11 @@ class ApikeySecret extends Component {
<div className="row mb-3">
<label className="col-sm-2 col-form-label">
Apikey Secret{' '}
<i
className="far fa-question-circle"
data-bs-toggle="tooltip"
data-bs-placement="top"
title=""
data-bs-original-title="The secret is a random key used to validate the API key"
aria-label="The secret is a random key used to validate the API key"
></i>
<span>
<i className="far fa-question-circle" data-tooltip-content="The secret is a random key used to validate the API key"
data-tooltip-id="apikey-secret" />
<ReactTooltip id="apikey-secret" />
</span>
</label>
<div className="col-sm-10">
<div className="input-group">
Expand Down

0 comments on commit c7e3fdc

Please sign in to comment.