Split Tab into ServerTab and FuntionalTab.

This commit is contained in:
Zhongyi Tong
2017-06-18 00:38:43 +08:00
parent e538543512
commit a62fc3d3bf
7 changed files with 72 additions and 73 deletions

View File

@@ -0,0 +1,18 @@
'use strict';
const Tab = require(__dirname + '/../components/tab.js');
class ServerTab extends Tab {
constructor(props) {
super(props);
}
template() {
return `<div class="tab">
<div class="server-tab-badge"></div>
<div class="server-tab" style="background-image: url(${this.props.icon});"></div>
</div>`;
}
}
module.exports = ServerTab;