mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 21:41:57 +00:00
feat(FE-438): Display date and week in Uniformity table
This commit is contained in:
@@ -4,7 +4,7 @@ import React, { useCallback, useState, useEffect, useMemo } from 'react';
|
||||
import useSWR from 'swr';
|
||||
import { Icon } from '@iconify/react';
|
||||
import { CellContext, ColumnDef, SortingState } from '@tanstack/react-table';
|
||||
import { cn } from '@/lib/helper';
|
||||
import { cn, formatDate } from '@/lib/helper';
|
||||
import Button from '@/components/Button';
|
||||
import UniformityChart from '@/components/pages/uniformity/UniformityChart';
|
||||
// import UniformityStat from '@/components/pages/uniformity/chart/UniformityStat';
|
||||
@@ -261,7 +261,8 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
|
||||
{
|
||||
accessorKey: 'week',
|
||||
header: 'Tanggal (Week)',
|
||||
cell: (props) => `Week ${props.row.original.week}`,
|
||||
cell: (props) =>
|
||||
`${formatDate(props.row.original.date, 'DD MMM YYYY')} (${props.row.original.week})`,
|
||||
},
|
||||
{
|
||||
accessorKey: 'status',
|
||||
|
||||
Reference in New Issue
Block a user