mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
fix(resolve): fix resolve mismatch conflict path on merge
This commit is contained in:
@@ -20,6 +20,9 @@ import { type Recording } from '@/types/api/flock/recording';
|
|||||||
const dummyRecordings: Recording[] = [
|
const dummyRecordings: Recording[] = [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
flock: {
|
||||||
|
id: 1,
|
||||||
|
period: 1,
|
||||||
flock: {
|
flock: {
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 'Flock A',
|
name: 'Flock A',
|
||||||
@@ -32,6 +35,86 @@ const dummyRecordings: Recording[] = [
|
|||||||
name: 'Admin',
|
name: 'Admin',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
area: {
|
||||||
|
id: 1,
|
||||||
|
name: 'Area 1',
|
||||||
|
created_at: '2024-01-01',
|
||||||
|
updated_at: '2024-01-01',
|
||||||
|
created_user: {
|
||||||
|
id: 1,
|
||||||
|
id_user: 1,
|
||||||
|
email: 'admin@example.com',
|
||||||
|
name: 'Admin',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
fcr: {
|
||||||
|
id: 1,
|
||||||
|
name: 'FCR 1.5',
|
||||||
|
created_at: '2024-01-01',
|
||||||
|
updated_at: '2024-01-01',
|
||||||
|
created_user: {
|
||||||
|
id: 1,
|
||||||
|
id_user: 1,
|
||||||
|
email: 'admin@example.com',
|
||||||
|
name: 'Admin',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
location: {
|
||||||
|
id: 1,
|
||||||
|
name: 'Location 1',
|
||||||
|
address: 'Address 1',
|
||||||
|
area: {
|
||||||
|
id: 1,
|
||||||
|
name: 'Area 1',
|
||||||
|
},
|
||||||
|
created_at: '2024-01-01',
|
||||||
|
updated_at: '2024-01-01',
|
||||||
|
created_user: {
|
||||||
|
id: 1,
|
||||||
|
id_user: 1,
|
||||||
|
email: 'admin@example.com',
|
||||||
|
name: 'Admin',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
kandangs: [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
name: 'Kandang 1',
|
||||||
|
status: 'ACTIVE',
|
||||||
|
location: {
|
||||||
|
id: 1,
|
||||||
|
name: 'Location 1',
|
||||||
|
address: 'Address 1',
|
||||||
|
area: {
|
||||||
|
id: 1,
|
||||||
|
name: 'Area 1',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
pic: {
|
||||||
|
id: 1,
|
||||||
|
id_user: 1,
|
||||||
|
email: 'pic@example.com',
|
||||||
|
name: 'PIC User',
|
||||||
|
},
|
||||||
|
created_at: '2024-01-01',
|
||||||
|
updated_at: '2024-01-01',
|
||||||
|
created_user: {
|
||||||
|
id: 1,
|
||||||
|
id_user: 1,
|
||||||
|
email: 'admin@example.com',
|
||||||
|
name: 'Admin',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
created_at: '2024-01-01',
|
||||||
|
updated_at: '2024-01-01',
|
||||||
|
created_user: {
|
||||||
|
id: 1,
|
||||||
|
id_user: 1,
|
||||||
|
email: 'admin@example.com',
|
||||||
|
name: 'Admin',
|
||||||
|
},
|
||||||
|
},
|
||||||
recording_date: '2024-01-01',
|
recording_date: '2024-01-01',
|
||||||
location: {
|
location: {
|
||||||
id: 1,
|
id: 1,
|
||||||
@@ -53,6 +136,7 @@ const dummyRecordings: Recording[] = [
|
|||||||
coop: {
|
coop: {
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 'Coop 1',
|
name: 'Coop 1',
|
||||||
|
status: 'ACTIVE',
|
||||||
location: {
|
location: {
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 'Location 1',
|
name: 'Location 1',
|
||||||
@@ -206,7 +290,9 @@ const RecordingTable = () => {
|
|||||||
const paginatedData = useMemo(() => {
|
const paginatedData = useMemo(() => {
|
||||||
const filteredData = dummyRecordings.filter(
|
const filteredData = dummyRecordings.filter(
|
||||||
(recording) =>
|
(recording) =>
|
||||||
recording.flock.name.toLowerCase().includes(search.toLowerCase()) ||
|
recording.flock.flock.name
|
||||||
|
.toLowerCase()
|
||||||
|
.includes(search.toLowerCase()) ||
|
||||||
recording.location.name.toLowerCase().includes(search.toLowerCase()) ||
|
recording.location.name.toLowerCase().includes(search.toLowerCase()) ||
|
||||||
recording.coop.name.toLowerCase().includes(search.toLowerCase())
|
recording.coop.name.toLowerCase().includes(search.toLowerCase())
|
||||||
);
|
);
|
||||||
@@ -253,7 +339,7 @@ const RecordingTable = () => {
|
|||||||
<div className='flex flex-col gap-2 mb-4'>
|
<div className='flex flex-col gap-2 mb-4'>
|
||||||
<TableToolbar
|
<TableToolbar
|
||||||
addButton={{
|
addButton={{
|
||||||
href: '/flock/recording/add',
|
href: 'recording/add',
|
||||||
label: 'Tambah Recording',
|
label: 'Tambah Recording',
|
||||||
}}
|
}}
|
||||||
search={{
|
search={{
|
||||||
@@ -382,7 +468,7 @@ const RecordingTable = () => {
|
|||||||
cell: (props) => pageSize * (page - 1) + props.row.index + 1,
|
cell: (props) => pageSize * (page - 1) + props.row.index + 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'flock.name',
|
accessorKey: 'flock.flock.name',
|
||||||
header: 'Flock',
|
header: 'Flock',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user