/* ---------------------------------- @mui ---------------------------------- */ import { styled } from '@mui/material/styles'; import { Paper, Table as TableContent, TableBody, TableCell, TableContainer, TableHead, TableRow, TextField, Button, TableSortLabel, Box, Card, Grid, FormControl, InputLabel, Select, MenuItem, SelectChangeEvent, Stack, Typography, LinearProgress, linearProgressClasses, InputAdornment, } from '@mui/material'; import { visuallyHidden } from '@mui/utils'; /* ---------------------------------- axios --------------------------------- */ import axios from '../utils/axios'; /* ---------------------------------- react --------------------------------- */ import { Fragment, useContext, useEffect, useState } from 'react'; import { useSearchParams } from 'react-router-dom'; /* -------------------------------- component ------------------------------- */ import BaseTablePagination from './BaseTablePagination'; /* ---------------------------------- theme --------------------------------- */ import palette from '../theme/palette'; /* ---------------------------------- utils --------------------------------- */ import { UserCurrentCorporateContext } from '../contexts/UserCurrentCorporate'; import { fSplit } from '../utils/formatNumber'; /* ---------------------------------- types --------------------------------- */ import { DivisionDataProps, Order, PaginationTableProps, TableListProps } from '../@types/table'; /* ----------------------------------- icon --------------------------------- */ import SearchIcon from '@mui/icons-material/Search'; import { FormControlLabel } from '@mui/material'; import { Checkbox } from '@mui/material'; import HistoryRoundedIcon from '@mui/icons-material/HistoryRounded'; import KeyboardArrowRightRoundedIcon from '@mui/icons-material/KeyboardArrowRightRounded'; import { LoadingButton } from '@mui/lab'; /* --------------------------------- styled --------------------------------- */ const BorderLinearProgress = styled(LinearProgress)(({ theme }) => ({ height: 10, borderRadius: 6, [`&.${linearProgressClasses.colorPrimary}`]: { backgroundColor: '#D1F1F1', }, [`& .${linearProgressClasses.bar}`]: { borderRadius: 6, backgroundColor: '#54D62C', }, })); /* -------------------------------------------------------------------------- */ export default function Table({ rows, loadings, params, searchs, }: TableListProps) { /* ------------------------------ handle checkbox ----------------------------*/ const handleCheckboxChange = async (event: React.ChangeEvent) => { // Anda bisa menambahkan logika di sini if (event.target.checked) { // Checkbox dicentang console.log('Checkbox dicentang'); // Tambahkan kode lain yang ingin Anda jalankan saat checkbox dicentang } else { // Checkbox tidak dicentang console.log('Checkbox tidak dicentang'); // Tambahkan kode lain yang ingin Anda jalankan saat checkbox tidak dicentang } }; return ( // {/* Field 1 */} {searchs && searchs.useSearchs ? (
searchs.setSearchText(event.target.value)} value={searchs.searchText} fullWidth placeholder='Search Name or Member ID... ' InputProps={{ startAdornment: ( ), }} />
) : null }
{/* End Field 1 */} {/* Field 2 */}
} label="" labelPlacement="end" sx={{marginLeft: '20px'}} />
user-profile
Alexandra Rhea Putranto KM002-01 LIMIT {fSplit(8000000)} / {fSplit(10000000000)} {/* */}
} label="" labelPlacement="end" sx={{marginLeft: '20px'}} />
user-profile
Alexandra Rhea Putranto KM002-01 LIMIT {fSplit(8000000)} / {fSplit(10000000000)} {/* */}
{/* End Field 2 */} Claim Submit Selected
//
); }