diff --git a/ReactNativeClient/src/base-model.js b/ReactNativeClient/src/base-model.js index a4bbcb894..6e0cb0fa0 100644 --- a/ReactNativeClient/src/base-model.js +++ b/ReactNativeClient/src/base-model.js @@ -13,6 +13,13 @@ class BaseModel { return false; } + static byId(items, id) { + for (let i = 0; i < items.length; i++) { + if (items[i].id == id) return items[i]; + } + return null; + } + static save(o) { let isNew = !o.id; let query = ''; diff --git a/ReactNativeClient/src/components/create-note-button.js b/ReactNativeClient/src/components/create-note-button.js deleted file mode 100644 index 99b2b2d78..000000000 --- a/ReactNativeClient/src/components/create-note-button.js +++ /dev/null @@ -1,31 +0,0 @@ -// import React, { Component } from 'react'; -// import { connect } from 'react-redux' -// import { Button } from 'react-native'; -// import { _ } from 'src/locale.js'; - -// class CreateNoteButtonComponent extends Component { - -// render() { -// return