git ssb

0+

mixmix / marama



Tree: f9d6722111546ffee8db81eaf805211d19e68f64

Files: f9d6722111546ffee8db81eaf805211d19e68f64 / day-label.js

376 bytesRaw
1const h = require('mutant/h')
2
3module.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