@@ -5,7 +5,6 @@ import { DataTableColumnHeader } from "@/components/data-table/data-table-column
55import { DataTableSortList } from "@/components/data-table/data-table-sort-list" ;
66import { StatusIndicator } from "@/components/status-indicator" ;
77import { useDataTable } from "@/hooks/use-data-table" ;
8- import { useI18n } from "@/locales/client" ;
98import { Policy } from "@comp/db/types" ;
109import { Card , CardContent , CardHeader , CardTitle } from "@comp/ui/card" ;
1110import { Input } from "@comp/ui/input" ;
@@ -23,7 +22,6 @@ export function PoliciesTable({
2322 orgId,
2423 controlId,
2524} : PoliciesTableProps ) {
26- const t = useI18n ( ) ;
2725 const [ searchTerm , setSearchTerm ] = useState ( "" ) ;
2826
2927 const columns = useMemo < ColumnDef < Policy > [ ] > (
@@ -33,7 +31,7 @@ export function PoliciesTable({
3331 header : ( { column } ) => (
3432 < DataTableColumnHeader
3533 column = { column }
36- title = { t ( "frameworks.artifacts.table.name" ) }
34+ title = { "Name" }
3735 />
3836 ) ,
3937 cell : ( { row } ) => {
@@ -52,7 +50,7 @@ export function PoliciesTable({
5250 header : ( { column } ) => (
5351 < DataTableColumnHeader
5452 column = { column }
55- title = { t ( "frameworks.artifacts.table.created_at" ) }
53+ title = { "Created At" }
5654 />
5755 ) ,
5856 cell : ( { row } ) => (
@@ -72,7 +70,7 @@ export function PoliciesTable({
7270 header : ( { column } ) => (
7371 < DataTableColumnHeader
7472 column = { column }
75- title = { t ( "frameworks.artifacts.table.status" ) }
73+ title = { "Status" }
7674 />
7775 ) ,
7876 cell : ( { row } ) => {
@@ -81,7 +79,7 @@ export function PoliciesTable({
8179 } ,
8280 } ,
8381 ] ,
84- [ t ] ,
82+ [ ] ,
8583 ) ;
8684
8785 const filteredPolicies = useMemo ( ( ) => {
@@ -111,15 +109,13 @@ export function PoliciesTable({
111109 < Card >
112110 < CardHeader >
113111 < CardTitle >
114- { t ( "frameworks.artifacts.title" ) } ({ filteredPolicies . length } )
112+ { "Linked Policies" } ({ filteredPolicies . length } )
115113 </ CardTitle >
116114 </ CardHeader >
117115 < CardContent >
118116 < div className = "flex items-center mb-4" >
119117 < Input
120- placeholder = { t (
121- "frameworks.artifacts.search.universal_placeholder" ,
122- ) }
118+ placeholder = { "Search..." }
123119 value = { searchTerm }
124120 onChange = { ( e ) => setSearchTerm ( e . target . value ) }
125121 className = "max-w-sm"
0 commit comments