0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 13:02:43 +00:00

Babel to support ES6 Javascript in older browsers

This commit is contained in:
Trevor Buckner
2021-06-10 00:09:29 -04:00
parent 51aba937f5
commit fc8be9c8fb
7 changed files with 114 additions and 8 deletions

View File

@@ -37,14 +37,13 @@ const Snippetbar = createClass({
},
renderSnippetGroups : function(){
let snippets = [];
if(this.props.view === 'text') {
if(this.props.renderer === 'V3')
snippets = SnippetsV3;
else
snippets = SnippetsLegacy;
} else {
snippets = [];
}
return _.map(snippets, (snippetGroup)=>{