diff --git a/public/user-cog-solid.svg b/public/user-cog-solid.svg new file mode 100644 index 0000000..62ae6cf --- /dev/null +++ b/public/user-cog-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/store/travail/index.js b/src/store/travail/index.js index 4711df2..b1c47fc 100644 --- a/src/store/travail/index.js +++ b/src/store/travail/index.js @@ -1,6 +1,8 @@ import { readFile } from 'fs' import Papa from 'papaparse' +import { getYear } from 'date-fns' +const today = new Date() const travail = { namespaced: true, @@ -18,8 +20,8 @@ const travail = { months: { }, range: { - start: "2021-01", - end: "2021-08", + start: `${getYear(today)}-01`, + end: `${getYear(today)}-12`, }, } },