Files: 0ae77ce854723c6cb0d10cdf9f28bcf53f3fc587 / day-label.js
376 bytesRaw
1 | const h = require('mutant/h') |
2 | |
3 | module.exports = function DayLabel (day, index, weekFormat) { |
4 | const style = weekFormat === 'rows' |
5 | ? { |
6 | 'grid-row': '1 / 2', |
7 | 'grid-column': `${index + 1} / ${index + 2}` |
8 | } |
9 | : { |
10 | 'grid-row': `${index + 1} / ${index + 2}`, |
11 | 'grid-column': '1 / 2' |
12 | } |
13 | |
14 | return h('MaramaDayLabel', { style }, day.substr(0, 1)) |
15 | } |
16 |
Built with git-ssb-web