4 Commits

Author SHA1 Message Date
50bf5b31b6 2.4.3
All checks were successful
platform/bro/pipeline/head This commit looks good
2024-04-11 13:03:27 +03:00
5670a96696 check jenkins script
All checks were successful
platform/bro/pipeline/head This commit looks good
2024-04-11 12:52:40 +03:00
3a13b68a3d 2.4.2
All checks were successful
platform/bro/pipeline/head This commit looks good
2024-04-09 23:38:59 +03:00
fc3366d52a gropu and sort lessons
All checks were successful
platform/bro/pipeline/head This commit looks good
2024-04-09 23:38:51 +03:00
4 changed files with 5 additions and 6 deletions

View File

@@ -12,7 +12,6 @@ module.exports = {
},
features: {
journal: {
// add your features here in the format [featureName]: { value: string }
'lesson.bar': {
on: true,
value: '',

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "journal.pl",
"version": "2.4.1",
"version": "2.4.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "journal.pl",
"version": "2.4.1",
"version": "2.4.3",
"license": "MIT",
"dependencies": {
"@chakra-ui/icons": "^2.1.1",

View File

@@ -1,6 +1,6 @@
{
"name": "journal.pl",
"version": "2.4.1",
"version": "2.4.3",
"description": "inno-js platform journal ui repo",
"main": "./src/index.tsx",
"scripts": {

View File

@@ -194,7 +194,7 @@ const LessonList = () => {
const toastRef = useRef(null)
const createdLessonRef = useRef(null)
const [editLesson, setEditLesson] = useState<Lesson>(null)
const sorted = useMemo(() => [...(data?.body || [])]?.sort((a, b) => a.date < b.date ? 1 : -1), [data, data?.body])
const sorted = useMemo(() => [...(data?.body || [])]?.sort((a, b) => a.date > b.date ? 1 : -1), [data, data?.body])
const lessonCalc = useMemo(() => {
if (!isSuccess) {
@@ -223,7 +223,7 @@ const LessonList = () => {
}
}
return lessonsData
return lessonsData.sort((a, b) => a.date < b.date? 1 : -1)
}, [groupByDate, isSuccess, sorted])
const onSubmit = (lessonData) => {