diff --git a/src/app/(modules)/rgi-test/page.tsx b/src/app/(modules)/rgi-test/page.tsx index e269244..0e3131f 100644 --- a/src/app/(modules)/rgi-test/page.tsx +++ b/src/app/(modules)/rgi-test/page.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState, useCallback, useMemo } from "react"; +import React, { useState, useCallback, useMemo } from "react"; import { Button } from "@/shared/components/ui/button"; import { Input } from "@/shared/components/ui/input"; import { Label } from "@/shared/components/ui/label"; @@ -536,80 +536,77 @@ export default function RgiTestPage() { const solved = app.hasSolution === 1; return ( - - - {/* Row */} -
+ + setExpandedPk(isExpanded ? null : pk) + } + > + + {solved ? ( + + ) : ( + )} - onClick={() => - setExpandedPk(isExpanded ? null : pk) - } - > - {/* Status icon */} -
- {solved ? ( - - ) : ( - + + {columns.map((col) => ( + - {/* Columns */} - {columns.map((col) => ( -
- {col.key === "statusName" ? ( - - {col.render(app)} - - ) : col.key === "resolutionName" ? ( - - {col.render(app)} - - ) : ( - col.render(app) - )} -
- ))} - {/* Expand arrow */} -
- {isExpanded ? ( - + title={col.render(app)} + > + {col.key === "statusName" ? ( + + {col.render(app)} + + ) : col.key === "resolutionName" ? ( + + {col.render(app)} + ) : ( - + col.render(app) )} -
-
- - {/* Expanded: issued documents */} - {isExpanded && ( -
+ + ))} + + {isExpanded ? ( + + ) : ( + + )} + + + {isExpanded && ( + + -
- )} - - + + + )} + ); })}