Skip to content

Commit

Permalink
Add Types to state ui actions (#1849)
Browse files Browse the repository at this point in the history
Add Types to state ui actions
  • Loading branch information
belcherj authored Jan 23, 2020
1 parent 29c30c2 commit 5b501e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
- Properly close revision/history view when clicking outside of slider [#1837](https://github.com/Automattic/simplenote-electron/pull/1837)
- Only remove markdown syntax in note list if markdown enabled for note [#1839](https://github.com/Automattic/simplenote-electron/pull/1839)

### Other Changes

- Added types to state/ui/actions [#1849](https://github.com/Automattic/simplenote-electron/pull/1849)

## [v1.14.0]

### Enhancements
Expand Down
6 changes: 4 additions & 2 deletions lib/state/ui/actions.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { FILTER_NOTES, TAG_DRAWER_TOGGLE } from '../action-types';

export const filterNotes = notes => ({
import * as T from '../../types';

export const filterNotes = (notes: T.NoteEntity[]) => ({
type: FILTER_NOTES,
notes,
});

export const toggleTagDrawer = show => ({
export const toggleTagDrawer = (show: boolean) => ({
type: TAG_DRAWER_TOGGLE,
show,
});

0 comments on commit 5b501e7

Please sign in to comment.