Unverified Commit 64fc388f authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #1271 from hypothesis/fix-new-note-btn-typo

Fix typo `bnt` -> `btn` in `SelectionTabs` component
parents 21ecaa76 ffd098d7
......@@ -5,7 +5,7 @@ const propTypes = require('prop-types');
const { createElement } = require('preact');
const { Fragment } = require('preact');
const NewNoteBnt = require('./new-note-btn');
const NewNoteBtn = require('./new-note-btn');
const sessionUtil = require('../util/session-util');
const uiConstants = require('../ui-constants');
const useStore = require('../store/use-store');
......@@ -140,7 +140,7 @@ function SelectionTabs({ isLoading, settings, session }) {
)}
</div>
{selectedTab === uiConstants.TAB_NOTES &&
settings.enableExperimentalNewNoteButton && <NewNoteBnt />}
settings.enableExperimentalNewNoteButton && <NewNoteBtn />}
{!isLoading && (
<div className="selection-tabs__empty-message">
{showNotesUnavailableMessage && (
......
......@@ -133,7 +133,7 @@ describe('SelectionTabs', function() {
assert.isFalse(wrapper.exists('.selection-tabs--theme-clean'));
});
it('should not display the new-note-bnt when the annotations tab is active', function() {
it('should not display the new-note-btn when the annotations tab is active', function() {
const wrapper = createComponent();
assert.equal(wrapper.find(NewNoteBtn).length, 0);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment