remove scroll down button backbone view as we are using it directly now
parent
79eae4838d
commit
bcc54f2bd0
@ -1,22 +0,0 @@
|
|||||||
/* global Whisper */
|
|
||||||
|
|
||||||
// eslint-disable-next-line func-names
|
|
||||||
(function() {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
window.Whisper = window.Whisper || {};
|
|
||||||
|
|
||||||
Whisper.ScrollDownButtonView = Whisper.View.extend({
|
|
||||||
initialize() {},
|
|
||||||
|
|
||||||
render() {
|
|
||||||
this.scrollButtonView = new Whisper.ReactWrapperView({
|
|
||||||
className: 'module-scroll-down',
|
|
||||||
Component: window.Signal.Components.SessionScrollButton,
|
|
||||||
});
|
|
||||||
|
|
||||||
this.$el.append(this.scrollButtonView.el);
|
|
||||||
return this;
|
|
||||||
},
|
|
||||||
});
|
|
||||||
})();
|
|
@ -1,12 +0,0 @@
|
|||||||
/* global Whisper */
|
|
||||||
|
|
||||||
describe('ScrollDownButtonView', () => {
|
|
||||||
it('renders ', () => {
|
|
||||||
const view = new Whisper.ScrollDownButtonView();
|
|
||||||
view.render();
|
|
||||||
assert.match(
|
|
||||||
view.$el.html(),
|
|
||||||
/<div class="session-icon-button huge" role="button"><svg /
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
|
Loading…
Reference in New Issue