- { section.ร่างมาตรา ? (
+ {section.ร่างมาตรา ? (
ร่างมาตรา
{section.ร่างมาตรา}
- ) : '' }
+ ) : ''}
ผู้อภิปราย
- { section.ผู้อภิปราย.length
- ? section.ผู้อภิปราย
- .map(s => (
- <>
- {s}
- ,
- >
- ))
- : 'ไม่มีผู้อภิปราย' }
+ {section.ผู้อภิปราย.length
+ ? section.ผู้อภิปราย
+ .map(s => (
+ <>
+ {s}
+ ,
+ >
+ ))
+ : 'ไม่มีผู้อภิปราย'}
- { section.หมายเหตุ ? (
+ {section.หมายเหตุ ? (
หมายเหตุ
{section.หมายเหตุ}
- ) : '' }
- { section.มติที่ประชุม ? (
+ ) : ''}
+ {section.มติที่ประชุม ? (
- ) : '' }
+ ) : ''}
- { section.ร่างบทบัญญัติ.length ? (
+ {section.ร่างบทบัญญัติ.length ? (
<>
-
+
@@ -93,20 +101,38 @@ export default function Sections({sections, search = null}) {
${search}`)}}
+ dangerouslySetInnerHTML={{ __html: section.ร่างบทบัญญัติ }}
>
>
- ) : '' }
-
-
+ ) : ''}
+ {section.ประเด็นการพิจารณา.length ? (
+ <>
+
+
ประเด็นการพิจารณา
+
+
+
+
+ {isShown &&
+
+ }
+
+
+ >
+ ) : ''}
+
));
-
+
return sectionArr;
-
+
}
diff --git a/src/components/SortBy.jsx b/src/components/SortBy.jsx
index be65ddf..588a007 100644
--- a/src/components/SortBy.jsx
+++ b/src/components/SortBy.jsx
@@ -1,18 +1,24 @@
-function SortBy({ sort, setSort }) {
+import React from 'react';
+
+function SortBy({ sort, setSort, mode = "" }) {
return (
);
}
-export default SortBy;
+export default SortBy;
\ No newline at end of file
diff --git a/src/pages/Discussionist.jsx b/src/pages/Discussionist.jsx
index 3b5797b..fe7e273 100644
--- a/src/pages/Discussionist.jsx
+++ b/src/pages/Discussionist.jsx
@@ -79,6 +79,11 @@ export default function Discussionist() {
const sortResult = useCallback(
(result) => {
+ if (sort === 2) {
+ return result.sort((a, b) =>
+ sort === parseInt(b[0], 10) - parseInt(a[0], 10)
+ );
+ }
return result.sort((a, b) =>
sort === 0 ? b[1].total - a[1].total : a[1].total - b[1].total
);
@@ -158,7 +163,7 @@ export default function Discussionist() {
)}
>
)}
-
+