mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-13 13:02:45 +00:00
Added smart componenets, page line number highlighting
This commit is contained in:
13
client/homebrew/editor/editor.smart.jsx
Normal file
13
client/homebrew/editor/editor.smart.jsx
Normal file
@@ -0,0 +1,13 @@
|
||||
const Actions = require('homebrewery/brew.actions.js');
|
||||
const Store = require('homebrewery/brew.store.js');
|
||||
|
||||
const Editor = require('./editor.jsx')
|
||||
|
||||
module.exports = Store.createSmartComponent(Editor, ()=>{
|
||||
return {
|
||||
value : Store.getBrewText(),
|
||||
onChange : Actions.updateBrewText,
|
||||
metadata : Store.getMetaData(),
|
||||
onMetadataChange : Actions.updateMetaData,
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user