Files: 9b7b6df024c1c91b5fa96dbbe3c3cbf1e5000f18 / app / html / topNav / zz_topNavBack.js
675 bytesRaw
1 | const nest = require('depnest') |
2 | const { h, computed, when } = require('mutant') |
3 | const get = require('lodash/get') |
4 | |
5 | exports.gives = nest('app.html.topNav') |
6 | |
7 | exports.needs = nest({ |
8 | 'history.sync.back': 'first', |
9 | 'translations.sync.strings': 'first', |
10 | }) |
11 | |
12 | exports.create = (api) => { |
13 | return nest('app.html.topNav', (location) => { |
14 | // const strings = api.translations.sync.strings() |
15 | const back = () => api.history.sync.back() |
16 | |
17 | return h('TopNav -back', [ |
18 | h('div.left', [ |
19 | h('div', { 'ev-click': back }, [ |
20 | h('i.fa.fa-chevron-left'), |
21 | // strings.blogIndex.title |
22 | ]), |
23 | ]), |
24 | h('div.right', [ |
25 | ]) |
26 | ]) |
27 | }) |
28 | } |
29 | |
30 |
Built with git-ssb-web