next-helios-fe 1.4.12 → 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/table/index.tsx +4 -4
package/package.json
CHANGED
@@ -220,14 +220,14 @@ export const Table: TableComponentProps = ({
|
|
220
220
|
{item.title}
|
221
221
|
<Icon
|
222
222
|
icon={`mi:${
|
223
|
-
item.key === sortBy
|
223
|
+
item.key === sortBy.column && sortBy.order === "asc"
|
224
224
|
? "arrow-up"
|
225
|
-
: item.key === sortBy
|
225
|
+
: item.key === sortBy.column && sortBy.order === "desc"
|
226
226
|
? "arrow-down"
|
227
227
|
: "sort"
|
228
228
|
}`}
|
229
229
|
className={`group-hover/header:visible ${
|
230
|
-
item.key === sortBy
|
230
|
+
item.key === sortBy.column ? "visible" : "invisible"
|
231
231
|
}`}
|
232
232
|
/>
|
233
233
|
</button>
|
@@ -335,7 +335,7 @@ export const Table: TableComponentProps = ({
|
|
335
335
|
?.slice((page - 1) * maxRow, page * maxRow)
|
336
336
|
?.map((item, index) => {
|
337
337
|
return (
|
338
|
-
<tr key={item.id}>
|
338
|
+
<tr key={item.id} className="hover:bg-secondary-transparent">
|
339
339
|
{checkbox && (
|
340
340
|
<td className="sticky left-0 w-8 px-4 py-1 border-b bg-secondary-bg">
|
341
341
|
<Form.Checkbox
|