Skip to content

Add edit and delete options for Time Entries#5

Open
martin-rifon wants to merge 2 commits into
stage-0from
edit-and-delete
Open

Add edit and delete options for Time Entries#5
martin-rifon wants to merge 2 commits into
stage-0from
edit-and-delete

Conversation

@martin-rifon
Copy link
Copy Markdown
Owner

@diegomura

Bueno Diego, te dejo una primera version de lo que seria edit y delete de las Time Entries. Tiene bugs y el codigo se puede emprolijar, pero quise pushear ahora por si no me daba el tiempo de terminarlo. Cualquier cosa, con los cambios que hay aca seria la entrega del proyecto, pero espero tener algunos minutos para poder subir algun cambio mas.

Saludos!

Copy link
Copy Markdown

@diegomura diegomura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esta muy bien!
Los comentarios son de estilos mas que nada.
Se nota que le agarraste la mano 😄

const { showModal } = this.state;
const toggleShowModal = ::this.toggleShowModal
const deleteTimeEntry = ::this.deleteTimeEntry
const onChange = (dateString, attribute) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Porque definir esto como una const y no un method de la class?

Comment thread src/reducers/index.js Outdated

'ALTER_TIME_ENTRY': (state, action) => {
const timeEntry = action.timeEntry;
const timeEntryIndex = state.timeEntries
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentacion muy rara. que tal:

const timeEntryIndex = state.timeEntries.findIndex((elem) => (
  elem.id == timeEntry.id
));

@martin-rifon
Copy link
Copy Markdown
Owner Author

Diego, fueron los cambios.

Te comento que ahora me voy a tomar una pausa con esto. Cuando vuelva, pienso ver primero el tema de agregarle testing y después corregir algunos bugs que vi. Cuando todo eso este, voy a seguir con las features extendidas de la wiki.

Me gustaría eventualmente dejar este proyectito con todas las features y el código bien prolijo. Muchas gracias de nuevo por tu feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants