-
-
- {variables.getMessage('widgets.navbar.todo.title')}
-
-
-
-
-
-
-
-
-
-
- {this.state.todo.length === 0 ? (
-
-
-
-
- {variables.getMessage('widgets.navbar.todo.no_todos')}
-
-
- {variables.getMessage('modals.main.settings.sections.message.add_some')}
-
-
-
- ) : (
-
index)}
- onDragEnd={this.handleDragEnd}
- >
- {this.state.todo.map((todo, index) => (
-
- {({ attributes, listeners }) => (
-
- this.updateTodo('done', index)}
- />
- this.updateTodo('set', index, data)}
- readOnly={todo.done}
- />
-
- this.updateTodo('remove', index)} />
-
-
-
- )}
-
- ))}
-
- )}
-
+
+
+
+ {t('widgets.navbar.todo.title')}
-
- )}
-
- );
- }
+
+
+
+
+
+
+
+
+
+ {todo.length === 0 ? (
+
+
+
+
+ {t('widgets.navbar.todo.no_todos')}
+
+
+ {t('modals.main.settings.sections.message.add_some')}
+
+
+
+ ) : (
+
index)}
+ onDragEnd={handleDragEnd}
+ >
+ {todo.map((todoItem, index) => (
+
+ {({ attributes, listeners }) => (
+
+ updateTodo('done', index)}
+ />
+ updateTodo('set', index, data)}
+ readOnly={todoItem.done}
+ />
+
+ updateTodo('remove', index)} />
+
+
+
+ )}
+
+ ))}
+
+ )}
+
+
+