mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
routes: completed slider
This commit is contained in:
parent
008acbbfd7
commit
febe619e8c
4 changed files with 32 additions and 13 deletions
|
@ -118,9 +118,8 @@ const mapStateToProps = ({ user: { editing, routes } }) => ({
|
|||
editing,
|
||||
marks: [...new Array((routes.filter.max - routes.filter.min) / 20 + 1)].reduce((obj, el, i) => ({
|
||||
...obj,
|
||||
[routes.filter.min + (i * 20)]: (routes.filter.min + (i * 20)),
|
||||
[routes.filter.min + (i * 20)]: String(routes.filter.min + (i * 20)),
|
||||
}), {}),
|
||||
// routes_sorted: Object.keys(routes).sort((a, b) => (Date.parse(routes[b].updated_at) - Date.parse(routes[a].updated_at))),
|
||||
});
|
||||
|
||||
const mapDispatchToProps = dispatch => bindActionCreators({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue