alltrust / Reminder-App

Set reminders based importance. Search & filter through passed reminders
0 stars 0 forks source link

State Rewrite #2

Closed sebastianserrano closed 2 years ago

sebastianserrano commented 2 years ago

This https://github.com/alltrust/Reminder-App/blob/628a2d8c14e37277dc36ce95243ad413ef014cd7/src/store/ui-actions.js#L16

Could be abbreviate it to

    toggleShowModalOn: (state, action) => ({
        ...state,
        showModal: action.payload
    }),
alltrust commented 2 years ago

10 cleaned up this issue