This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
outline/frontend/stores/UiStore.js
2017-06-15 20:39:08 -07:00

19 lines
336 B
JavaScript

// @flow
import { observable, action } from 'mobx';
class UiStore {
@observable activeCollection: ?string;
/* Actions */
@action setActiveCollection = (id: string): void => {
this.activeCollection = id;
};
@action clearActiveCollection = (): void => {
this.activeCollection = null;
};
}
export default UiStore;