Draft implementation of sessions.
- Introduce react-router & add some pages.
- Add login page (does nothing).
- Allow creating a new session.
- Allow adding notes into a session.
import uuidV1 from 'uuid/v1';
import * as types from '../constants/actionTypes';
export const addNote = (session, text) => {
return {
type: types.ADD_NOTE,
note: {
id: uuidV1(),
session: session.id,
text: text,
}
};
}