diff -r f98efa1bddd1 -r 7da1d5137b0b client/src/components/ReadOnlySession.js --- a/client/src/components/ReadOnlySession.js Thu Oct 11 11:05:04 2018 +0200 +++ b/client/src/components/ReadOnlySession.js Tue Nov 06 16:19:26 2018 +0100 @@ -1,12 +1,21 @@ import React, { Component } from 'react'; import { connect } from 'react-redux'; -import Note from './Note'; +import { formatTimestamp } from '../utils'; import Navbar from './Navbar'; -import SessionForm from './SessionForm'; import { getSession, getSessionNotes } from '../selectors/coreSelectors'; -import './ReadOnlySession.css'; +const ReadOnlyNote = ({ note }) => { + return ( +
+
+ { formatTimestamp(note.startedAt) } + { formatTimestamp(note.finishedAt) } +
+
+
+ ); +} class ReadOnlySession extends Component { @@ -21,15 +30,22 @@
- - Atteindre la session +
+
+
+ { this.props.currentSession.title || ' ' } +
+
+ { this.props.currentSession.description || ' ' } +
+
+
- {this.props.notes.map((note) => - - )} + { + this.props.notes.map((note) => + + ) + }