Fix book column ordering and size

This commit is contained in:
Reckless_Satoshi 2022-10-01 05:03:01 -07:00
parent 3b0e740ea2
commit 21f6edea6e
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -16,7 +16,7 @@ import {
LinearProgress, LinearProgress,
IconButton, IconButton,
} from '@mui/material'; } from '@mui/material';
import { DataGrid, GridFooterPlaceholder, GridPagination } from '@mui/x-data-grid'; import { DataGrid, GridPagination } from '@mui/x-data-grid';
import currencyDict from '../../static/assets/currencies.json'; import currencyDict from '../../static/assets/currencies.json';
import { Order } from '../models/Order.model'; import { Order } from '../models/Order.model';
@ -32,6 +32,7 @@ import { Fullscreen, FullscreenExit, Refresh } from '@mui/icons-material';
interface Props { interface Props {
loading: boolean; loading: boolean;
refreshing: boolean;
clickRefresh: () => void; clickRefresh: () => void;
orders: Order[]; orders: Order[];
type: number; type: number;
@ -179,7 +180,7 @@ const BookTable = ({
width: width * fontSize, width: width * fontSize,
renderCell: (params) => { renderCell: (params) => {
return ( return (
<div style={{ position: 'relative', left: '-1.5em' }}> <div style={{ position: 'relative', left: '-1.64em' }}>
<ListItemButton style={{ cursor: 'pointer' }}> <ListItemButton style={{ cursor: 'pointer' }}>
<RobotAvatar <RobotAvatar
nickname={params.row.maker_nick} nickname={params.row.maker_nick}
@ -481,30 +482,30 @@ const BookTable = ({
object: premiumObj, object: premiumObj,
}, },
}, },
robot: {
priority: 4,
order: 1,
normal: {
width: 17.14,
object: robotObj,
},
small: {
width: 4.3,
object: robotSmallObj,
},
},
paymentMethod: { paymentMethod: {
priority: 5, priority: 4,
order: 6, order: 6,
normal: { normal: {
width: 12.85, width: 12.85,
object: paymentObj, object: paymentObj,
}, },
small: { small: {
width: 5.8, width: 4.4,
object: paymentSmallObj, object: paymentSmallObj,
}, },
}, },
robot: {
priority: 5,
order: 1,
normal: {
width: 17.14,
object: robotObj,
},
small: {
width: 4.1,
object: robotSmallObj,
},
},
price: { price: {
priority: 6, priority: 6,
order: 10, order: 10,
@ -525,7 +526,7 @@ const BookTable = ({
priority: 8, priority: 8,
order: 8, order: 8,
normal: { normal: {
width: 3.8, width: 4.8,
object: timerObj, object: timerObj,
}, },
}, },