Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Restyle order list
dominik-zeglen775d88631e28
diff --git a/saleor/static/dashboard-next/components/DateFormatter/DateFormatter.tsx b/saleor/static/dashboard-next/components/DateFormatter/DateFormatter.tsxindex fcdc4a88a8..f1aba57521 100644--- a/saleor/static/dashboard-next/components/DateFormatter/DateFormatter.tsx+++ b/saleor/static/dashboard-next/components/DateFormatter/DateFormatter.tsx@@ -16,8 +16,8 @@ const decorate = withStyles(});const DateFormatter = decorate<DateFormatterProps>(- ({ classes, date, typographyProps }) => {- return (+ ({ classes, date, typographyProps }) =>+ typographyProps ? (<Typographycomponent="span"className={classes.root}@@ -27,7 +27,10 @@ const DateFormatter = decorate<DateFormatterProps>(<span>{date}</span></Tooltip></Typography>- );- }+ ) : (+ <Tooltip title={date}>+ <span>{date}</span>+ </Tooltip>+ ));export default DateFormatter;diff --git a/saleor/static/dashboard-next/components/StatusLabel/StatusLabel.tsx b/saleor/static/dashboard-next/components/StatusLabel/StatusLabel.tsxindex 28c0527f05..042d512ea0 100644--- a/saleor/static/dashboard-next/components/StatusLabel/StatusLabel.tsx+++ b/saleor/static/dashboard-next/components/StatusLabel/StatusLabel.tsx@@ -30,7 +30,7 @@ const decorate = withStyles(theme => {"&:before": { backgroundColor: yellow[500], ...dot }},root: {- display: "inline",+ display: "inline-block",marginLeft: theme.spacing.unit + 8,position: "relative" as "relative"},diff --git a/saleor/static/dashboard-next/orders/components/OrderList/OrderList.tsx b/saleor/static/dashboard-next/orders/components/OrderList/OrderList.tsxindex 616fcbab3c..a5b513f746 100644--- a/saleor/static/dashboard-next/orders/components/OrderList/OrderList.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderList/OrderList.tsx@@ -8,6 +8,7 @@ import TableHead from "@material-ui/core/TableHead";import TableRow from "@material-ui/core/TableRow";import * as React from "react";+import { transformOrderStatus, transformPaymentStatus } from "../..";import { ListProps } from "../../..";import DateFormatter from "../../../components/DateFormatter";import Money from "../../../components/Money";@@ -16,41 +17,21 @@ import StatusLabel from "../../../components/StatusLabel";import TablePagination from "../../../components/TablePagination";import i18n from "../../../i18n";import { maybe, renderCollection } from "../../../misc";+import { OrderList_orders_edges_node } from "../../types/OrderList";interface OrderListProps extends ListProps {- orders?: Array<{- id: string;- number: string;- status: {- status: string;- localized: string;- };- userEmail: string;- created: string;- paymentStatus: {- status: string;- localized: string;- };- total: {- gross: {- amount: number;- currency: string;- };- };- }>;+ orders: OrderList_orders_edges_node[];}const decorate = withStyles(- theme => ({+ {link: {- color: theme.palette.secondary.main,- cursor: "pointer",- textDecoration: "none"+ cursor: "pointer"},textRight: {textAlign: "right" as "right"}- }),+ },{ name: "OrderList" });export const OrderList = decorate<OrderListProps>(@@ -62,100 +43,135 @@ export const OrderList = decorate<OrderListProps>(onPreviousPage,onNextPage,onRowClick- }) => (- <Card>- <Table>- <TableHead>- <TableRow>- <TableCell>{i18n.t("#", { context: "object" })}</TableCell>- <TableCell>- {i18n.t("Fulfillment", { context: "object" })}- </TableCell>- <TableCell>{i18n.t("Client", { context: "object" })}</TableCell>- <TableCell>{i18n.t("Created at", { context: "object" })}</TableCell>- <TableCell>- {i18n.t("Payment status", { context: "object" })}- </TableCell>- <TableCell className={classes.textRight}>- {i18n.t("Price", { context: "object" })}- </TableCell>- </TableRow>- </TableHead>- <TableFooter>- <TableRow>- <TablePagination- colSpan={6}- hasNextPage={pageInfo && !disabled ? pageInfo.hasNextPage : false}- onNextPage={onNextPage}- hasPreviousPage={- pageInfo && !disabled ? pageInfo.hasPreviousPage : false- }- onPreviousPage={onPreviousPage}- />- </TableRow>- </TableFooter>- <TableBody>- {renderCollection(- orders,- order => (- <TableRow key={order ? order.id : "skeleton"}>- <TableCell- onClick={order && onRowClick && onRowClick(order.id)}- className={classes.link}+ }) => {+ const orderList = orders+ ? orders.map(order => ({+ ...order,+ paymentStatus: transformPaymentStatus(order.paymentStatus),+ status: transformOrderStatus(order.status)+ }))+ : undefined;+ return (+ <Card>+ <Table>+ <TableHead>+ <TableRow>+ <TableCell padding="dense">+ {i18n.t("No. of Order", { context: "table header" })}+ </TableCell>+ <TableCell padding="dense">+ {i18n.t("Date", { context: "table header" })}+ </TableCell>+ <TableCell padding="dense">+ {i18n.t("Customer", { context: "table header" })}+ </TableCell>+ <TableCell padding="dense">+ {i18n.t("Payment", { context: "table header" })}+ </TableCell>+ <TableCell padding="dense">+ {i18n.t("Fulfillment status", { context: "table header" })}+ </TableCell>+ <TableCell className={classes.textRight} padding="dense">+ {i18n.t("Total", { context: "table header" })}+ </TableCell>+ </TableRow>+ </TableHead>+ <TableFooter>+ <TableRow>+ <TablePagination+ colSpan={6}+ hasNextPage={+ pageInfo && !disabled ? pageInfo.hasNextPage : false+ }+ onNextPage={onNextPage}+ hasPreviousPage={+ pageInfo && !disabled ? pageInfo.hasPreviousPage : false+ }+ onPreviousPage={onPreviousPage}+ />+ </TableRow>+ </TableFooter>+ <TableBody>+ {renderCollection(+ orderList,+ order => (+ <TableRow+ hover={!!order}+ className={!!order ? classes.link : undefined}+ onClick={order ? onRowClick(order.id) : undefined}+ key={order ? order.id : "skeleton"}>- {order ? order.number : <Skeleton />}- </TableCell>- <TableCell>- {order && order.status ? (- <StatusLabel- status={order.status.status}- label={order.status.localized}- />- ) : (- <Skeleton />- )}- </TableCell>- <TableCell>{order ? order.userEmail : <Skeleton />}</TableCell>- <TableCell>- {order ? (- <DateFormatter date={order.created} />- ) : (- <Skeleton />- )}- </TableCell>- <TableCell>- {maybe(() => order.paymentStatus.status) !== undefined ? (- order.paymentStatus.status === null ? null : (+ <TableCell padding="dense">+ {maybe(() => order.number) ? (+ "#" + order.number+ ) : (+ <Skeleton />+ )}+ </TableCell>+ <TableCell padding="dense">+ {maybe(() => order.created) ? (+ <DateFormatter date={order.created} />+ ) : (+ <Skeleton />+ )}+ </TableCell>+ <TableCell padding="dense">+ {maybe(() => order.billingAddress) ? (+ <>+ {order.billingAddress.firstName}+ + {order.billingAddress.lastName}+ </>+ ) : maybe(() => order.userEmail) !== undefined ? (+ order.userEmail+ ) : (+ <Skeleton />+ )}+ </TableCell>+ <TableCell padding="dense">+ {maybe(() => order.paymentStatus.status) !== undefined ? (+ order.paymentStatus.status === null ? null : (+ <StatusLabel+ status={order.paymentStatus.status}+ label={order.paymentStatus.localized}+ />+ )+ ) : (+ <Skeleton />+ )}+ </TableCell>+ <TableCell padding="dense">+ {maybe(() => order.status) ? (<StatusLabel- status={order.paymentStatus.status}- label={order.paymentStatus.localized}+ status={order.status.status}+ label={order.status.localized}/>- )- ) : (- <Skeleton />- )}- </TableCell>- <TableCell className={classes.textRight}>- {order && order.total && order.total.gross ? (- <Money- amount={order.total.gross.amount}- currency={order.total.gross.currency}- />- ) : (- <Skeleton />- )}- </TableCell>- </TableRow>- ),- () => (- <TableRow>- <TableCell colSpan={6}>{i18n.t("No orders found")}</TableCell>- </TableRow>- )- )}- </TableBody>- </Table>- </Card>- )+ ) : (+ <Skeleton />+ )}+ </TableCell>+ <TableCell className={classes.textRight} padding="dense">+ {maybe(() => order.total.gross) ? (+ <Money+ amount={order.total.gross.amount}+ currency={order.total.gross.currency}+ />+ ) : (+ <Skeleton />+ )}+ </TableCell>+ </TableRow>+ ),+ () => (+ <TableRow>+ <TableCell colSpan={6}>{i18n.t("No orders found")}</TableCell>+ </TableRow>+ )+ )}+ </TableBody>+ </Table>+ </Card>+ );+ });export default OrderList;diff --git a/saleor/static/dashboard-next/orders/components/OrderListPage/OrderListPage.tsx b/saleor/static/dashboard-next/orders/components/OrderListPage/OrderListPage.tsxindex 0029f029a7..cc19136db6 100644--- a/saleor/static/dashboard-next/orders/components/OrderListPage/OrderListPage.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderListPage/OrderListPage.tsx@@ -2,28 +2,15 @@ import Button from "@material-ui/core/Button";import AddIcon from "@material-ui/icons/Add";import * as React from "react";-import { transformOrderStatus, transformPaymentStatus } from "../../";import { PageListProps } from "../../..";import Container from "../../../components/Container";import PageHeader from "../../../components/PageHeader";import i18n from "../../../i18n";+import { OrderList_orders_edges_node } from "../../types/OrderList";import OrderList from "../OrderList";interface OrderListPageProps extends PageListProps {- orders?: Array<{- created: string;- id: string;- number: string;- paymentStatus: string;- status: string;- total: {- gross: {- amount: number;- currency: string;- };- };- userEmail: string;- }>;+ orders: OrderList_orders_edges_node[];}const OrderListPage: React.StatelessComponent<OrderListPageProps> = ({@@ -34,35 +21,26 @@ const OrderListPage: React.StatelessComponent<OrderListPageProps> = ({onNextPage,onPreviousPage,onRowClick-}) => {- const orderList = orders- ? orders.map(order => ({- ...order,- paymentStatus: transformPaymentStatus(order.paymentStatus),- status: transformOrderStatus(order.status)- }))- : undefined;- return (- <Container width="md">- <PageHeader title={i18n.t("Orders")}>- <Button- color="secondary"- variant="contained"- disabled={disabled}- onClick={onAdd}- >- {i18n.t("Add order")} <AddIcon />- </Button>- </PageHeader>- <OrderList+}) => (+ <Container width="md">+ <PageHeader title={i18n.t("Orders")}>+ <Button+ color="secondary"+ variant="contained"disabled={disabled}- onRowClick={onRowClick}- orders={orderList}- pageInfo={pageInfo}- onNextPage={onNextPage}- onPreviousPage={onPreviousPage}- />- </Container>- );-};+ onClick={onAdd}+ >+ {i18n.t("Create order", { context: "button" })} <AddIcon />+ </Button>+ </PageHeader>+ <OrderList+ disabled={disabled}+ onRowClick={onRowClick}+ orders={orders}+ pageInfo={pageInfo}+ onNextPage={onNextPage}+ onPreviousPage={onPreviousPage}+ />+ </Container>+);export default OrderListPage;diff --git a/saleor/static/dashboard-next/orders/fixtures.ts b/saleor/static/dashboard-next/orders/fixtures.tsindex eef1828dd7..7154d944a4 100644--- a/saleor/static/dashboard-next/orders/fixtures.ts+++ b/saleor/static/dashboard-next/orders/fixtures.ts@@ -1,4 +1,6 @@+import { OrderStatus, PaymentStatusEnum } from "../types/globalTypes";import { transformOrderStatus, transformPaymentStatus } from "./";+import { OrderList_orders_edges_node } from "./types/OrderList";export const clients = [{email: "[email protected]",@@ -17,96 +19,708 @@ export const clients = [id: "c4"}];-export const orders = [+export const orders: OrderList_orders_edges_node[] = [{- client: clients[0],- created: "2018-04-07T11:18:19+00:00",- id: "o1",+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "East Aaronville",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "BE",+ country: "Belgia"+ },+ countryArea: "",+ firstName: "Laura",+ id: "QWRkcmVzczo5",+ lastName: "Stone 1 2",+ phone: "",+ postalCode: "88741",+ streetAddress1: "3678 John Course",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:30.376876+00:00",+ id: "T3JkZXI6MjA=",+ number: "20",+ paymentStatus: PaymentStatusEnum.CONFIRMED,+ status: OrderStatus.CANCELED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 305.17,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "Port Danielshire",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "SE",+ country: "Szwecja"+ },+ countryArea: "",+ firstName: "Elizabeth",+ id: "QWRkcmVzczoy",+ lastName: "Vaughn",+ phone: "",+ postalCode: "52203",+ streetAddress1: "419 Ruiz Orchard Apt. 199",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:30.124154+00:00",+ id: "T3JkZXI6MTk=",+ number: "19",+ paymentStatus: PaymentStatusEnum.CONFIRMED,+ status: OrderStatus.CANCELED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 1215.89,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: null,+ created: "2018-09-11T09:37:30.019749+00:00",+ id: "T3JkZXI6MTg=",+ number: "18",+ paymentStatus: PaymentStatusEnum.PREAUTH,+ status: OrderStatus.DRAFT,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 321.71,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "South Rodneymouth",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "GR",+ country: "Grecja"+ },+ countryArea: "",+ firstName: "Aaron",+ id: "QWRkcmVzczoyOA==",+ lastName: "Randall",+ phone: "",+ postalCode: "30356",+ streetAddress1: "326 Palmer Rapids Apt. 717",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:29.864391+00:00",+ id: "T3JkZXI6MTc=",+ number: "17",+ paymentStatus: PaymentStatusEnum.PREAUTH,+ status: OrderStatus.CANCELED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 271.95,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "Jorgeview",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "UG",+ country: "Uganda"+ },+ countryArea: "",+ firstName: "Laura",+ id: "QWRkcmVzczoxNA==",+ lastName: "Jensen",+ phone: "",+ postalCode: "77693",+ streetAddress1: "01504 Olson Springs Suite 920",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:29.610339+00:00",+ id: "T3JkZXI6MTY=",+ number: "16",+ paymentStatus: PaymentStatusEnum.PREAUTH,+ status: OrderStatus.CANCELED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 335.84,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "East Lauriestad",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "PW",+ country: "Palau"+ },+ countryArea: "",+ firstName: "Jenna",+ id: "QWRkcmVzczoyNw==",+ lastName: "Villa",+ phone: "",+ postalCode: "65613",+ streetAddress1: "2031 Mcdonald Mill",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:29.336209+00:00",+ id: "T3JkZXI6MTU=",+ number: "15",+ paymentStatus: PaymentStatusEnum.REJECTED,+ status: OrderStatus.CANCELED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 1042.15,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "Kaneton",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "VA",+ country: "Watykan"+ },+ countryArea: "",+ firstName: "Wesley",+ id: "QWRkcmVzczo4",+ lastName: "Davis",+ phone: "",+ postalCode: "66203",+ streetAddress1: "667 Joseph Lights",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:29.103651+00:00",+ id: "T3JkZXI6MTQ=",+ number: "14",+ paymentStatus: PaymentStatusEnum.WAITING,+ status: OrderStatus.CANCELED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 213.69,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "New Morganshire",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "NL",+ country: "Holandia"+ },+ countryArea: "",+ firstName: "Anthony",+ id: "QWRkcmVzczo3",+ lastName: "Gonzalez",+ phone: "",+ postalCode: "78701",+ streetAddress1: "402 Mason Viaduct Suite 592",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:28.921956+00:00",+ id: "T3JkZXI6MTM=",+ number: "13",+ paymentStatus: PaymentStatusEnum.WAITING,+ status: OrderStatus.CANCELED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 367.03,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "Adamsport",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "TN",+ country: "Tunezja"+ },+ countryArea: "",+ firstName: "Denise",+ id: "QWRkcmVzczoyNg==",+ lastName: "Freeman",+ phone: "",+ postalCode: "27744",+ streetAddress1: "8376 Linda Valley Apt. 934",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:28.750718+00:00",+ id: "T3JkZXI6MTI=",+ number: "12",+ paymentStatus: PaymentStatusEnum.PREAUTH,+ status: OrderStatus.CANCELED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 298.76,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "Thomasburgh",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "DJ",+ country: "Dżibuti"+ },+ countryArea: "",+ firstName: "James",+ id: "QWRkcmVzczo2",+ lastName: "Ball",+ phone: "",+ postalCode: "70958",+ streetAddress1: "60049 Fisher Grove",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:28.598246+00:00",+ id: "T3JkZXI6MTE=",number: "11",- paymentStatus: "confirmed",- status: "fulfilled",+ paymentStatus: PaymentStatusEnum.CONFIRMED,+ status: OrderStatus.UNFULFILLED,total: {+ __typename: "TaxedMoney",gross: {- amount: 19.2,+ __typename: "Money",+ amount: 663.69,currency: "USD"}},- userEmail: "[email protected]"+ userEmail: "[email protected]"},{- client: clients[0],- created: "2018-04-07T11:11:19+00:00",- id: "o2",+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "Lake Walter",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "MK",+ country: "Macedonia"+ },+ countryArea: "",+ firstName: "Michael",+ id: "QWRkcmVzczoz",+ lastName: "Martinez",+ phone: "",+ postalCode: "11343",+ streetAddress1: "843 Allen Ramp Suite 194",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:28.409836+00:00",+ id: "T3JkZXI6MTA=",number: "10",- paymentStatus: "confirmed",- status: "unfulfilled",+ paymentStatus: PaymentStatusEnum.PREAUTH,+ status: OrderStatus.CANCELED,total: {+ __typename: "TaxedMoney",gross: {- amount: 28.9,+ __typename: "Money",+ amount: 280.41,currency: "USD"}},- userEmail: "[email protected]"+ userEmail: "[email protected]"},{- client: clients[1],- created: "2018-04-07T10:44:44+00:00",- id: "o3",+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "West Patriciastad",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "SB",+ country: "Wyspy Salomona"+ },+ countryArea: "",+ firstName: "Melissa",+ id: "QWRkcmVzczoyNQ==",+ lastName: "Simon",+ phone: "",+ postalCode: "66272",+ streetAddress1: "487 Roberto Shores",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:28.185874+00:00",+ id: "T3JkZXI6OQ==",number: "9",- paymentStatus: "rejected",- status: "fulfilled",+ paymentStatus: PaymentStatusEnum.PREAUTH,+ status: OrderStatus.PARTIALLY_FULFILLED,total: {+ __typename: "TaxedMoney",gross: {- amount: 289.0,+ __typename: "Money",+ amount: 234.93,currency: "USD"}},- userEmail: "[email protected]"+ userEmail: "[email protected]"},{- client: clients[2],- created: "2018-04-07T10:33:19+00:00",- id: "o4",- number: "9",- paymentStatus: "unknown",- status: "fulfilled",+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "Lake Kevinchester",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "CL",+ country: "Chile"+ },+ countryArea: "",+ firstName: "Justin",+ id: "QWRkcmVzczoyNA==",+ lastName: "Mccoy",+ phone: "",+ postalCode: "03826",+ streetAddress1: "74416 Jensen Gateway Suite 140",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:27.953588+00:00",+ id: "T3JkZXI6OA==",+ number: "8",+ paymentStatus: PaymentStatusEnum.WAITING,+ status: OrderStatus.PARTIALLY_FULFILLED,total: {+ __typename: "TaxedMoney",gross: {- amount: 100.05,+ __typename: "Money",+ amount: 485.19,currency: "USD"}},- userEmail: "[email protected]"+ userEmail: "[email protected]"},{- client: clients[3],- created: "2018-04-07T07:39:19+00:00",- id: "o5",- number: "9",- paymentStatus: "waiting",- status: "fulfilled",+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "New Morganshire",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "NL",+ country: "Holandia"+ },+ countryArea: "",+ firstName: "Anthony",+ id: "QWRkcmVzczo3",+ lastName: "Gonzalez",+ phone: "",+ postalCode: "78701",+ streetAddress1: "402 Mason Viaduct Suite 592",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:27.828033+00:00",+ id: "T3JkZXI6Nw==",+ number: "7",+ paymentStatus: PaymentStatusEnum.CONFIRMED,+ status: OrderStatus.PARTIALLY_FULFILLED,total: {+ __typename: "TaxedMoney",gross: {- amount: 14.87,+ __typename: "Money",+ amount: 223.54,currency: "USD"}},- userEmail: "[email protected]"+ userEmail: "[email protected]"},{- client: clients[3],- created: "2018-04-06T19:18:19+00:00",- id: "o6",- number: "8",- paymentStatus: "rejected",- status: "unfulfilled",+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "Gabrielchester",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "SN",+ country: "Senegal"+ },+ countryArea: "",+ firstName: "Bradley",+ id: "QWRkcmVzczoyMw==",+ lastName: "Ford",+ phone: "",+ postalCode: "88661",+ streetAddress1: "56414 Ashley Gardens",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:27.636741+00:00",+ id: "T3JkZXI6Ng==",+ number: "6",+ paymentStatus: PaymentStatusEnum.WAITING,+ status: OrderStatus.FULFILLED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 237.55,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "East Steven",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "CG",+ country: "Kongo"+ },+ countryArea: "",+ firstName: "David",+ id: "QWRkcmVzczoxNg==",+ lastName: "Lawson",+ phone: "",+ postalCode: "87510",+ streetAddress1: "151 Huang Pines",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:27.420590+00:00",+ id: "T3JkZXI6NQ==",+ number: "5",+ paymentStatus: PaymentStatusEnum.WAITING,+ status: OrderStatus.PARTIALLY_FULFILLED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 453.55,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "East Daniel",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "NA",+ country: "Namibia"+ },+ countryArea: "",+ firstName: "Lauren",+ id: "QWRkcmVzczoyMg==",+ lastName: "Watson",+ phone: "",+ postalCode: "22102",+ streetAddress1: "340 Amanda Tunnel Suite 869",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:27.230990+00:00",+ id: "T3JkZXI6NA==",+ number: "4",+ paymentStatus: PaymentStatusEnum.WAITING,+ status: OrderStatus.PARTIALLY_FULFILLED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 812.67,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "Lake Margaret",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "CO",+ country: "Kolumbia"+ },+ countryArea: "",+ firstName: "Mark",+ id: "QWRkcmVzczoxNQ==",+ lastName: "Lee",+ phone: "",+ postalCode: "18829",+ streetAddress1: "34480 Daniel Centers Apt. 642",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:26.972507+00:00",+ id: "T3JkZXI6Mw==",+ number: "3",+ paymentStatus: PaymentStatusEnum.WAITING,+ status: OrderStatus.PARTIALLY_FULFILLED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 481.41,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "Dorothyberg",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "BJ",+ country: "Benin"+ },+ countryArea: "",+ firstName: "Kara",+ id: "QWRkcmVzczoyMQ==",+ lastName: "Murphy",+ phone: "",+ postalCode: "88138",+ streetAddress1: "0674 Kent Station Suite 395",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:26.751359+00:00",+ id: "T3JkZXI6Mg==",+ number: "2",+ paymentStatus: PaymentStatusEnum.CONFIRMED,+ status: OrderStatus.PARTIALLY_FULFILLED,+ total: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 569.19,+ currency: "USD"+ }+ },+ userEmail: "[email protected]"+ },+ {+ __typename: "Order",+ billingAddress: {+ __typename: "Address",+ city: "Gregorymouth",+ cityArea: "",+ companyName: "",+ country: {+ __typename: "CountryDisplay",+ code: "CV",+ country: "Republika Zielonego Przylądka"+ },+ countryArea: "",+ firstName: "Curtis",+ id: "QWRkcmVzczox",+ lastName: "Bailey",+ phone: "",+ postalCode: "84525",+ streetAddress1: "839 Scott Lake",+ streetAddress2: ""+ },+ created: "2018-09-11T09:37:26.314968+00:00",+ id: "T3JkZXI6MQ==",+ number: "1",+ paymentStatus: PaymentStatusEnum.WAITING,+ status: OrderStatus.PARTIALLY_FULFILLED,total: {+ __typename: "TaxedMoney",gross: {- amount: 14.87,+ __typename: "Money",+ amount: 557,currency: "USD"}},- userEmail: "[email protected]"+ userEmail: "[email protected]"}];export const order = (placeholder, args?) => ({diff --git a/saleor/static/dashboard-next/orders/queries.ts b/saleor/static/dashboard-next/orders/queries.tsindex 58d4c28ab7..d28324403a 100644--- a/saleor/static/dashboard-next/orders/queries.ts+++ b/saleor/static/dashboard-next/orders/queries.ts@@ -8,39 +8,6 @@ import {OrderVariantSearchVariables} from "./types/OrderVariantSearch";-export const orderListQuery = gql`- query OrderList($first: Int, $after: String, $last: Int, $before: String) {- orders(before: $before, after: $after, first: $first, last: $last) {- edges {- cursor- node {- id- number- created- paymentStatus- status- total {- gross {- amount- currency- }- }- userEmail- }- }- pageInfo {- hasPreviousPage- hasNextPage- startCursor- endCursor- }- }- }-`;-export const TypedOrderListQuery = TypedQuery<OrderList, OrderListVariables>(- orderListQuery-);-export const fragmentOrderEvent = gql`fragment OrderEventFragment on OrderEvent {id@@ -58,16 +25,17 @@ export const fragmentOrderEvent = gql``;export const fragmentAddress = gql`fragment AddressFragment on Address {- idcitycityAreacompanyNamecountry {+ __typenamecodecountry}countryAreafirstName+ idlastNamephonepostalCode@@ -174,6 +142,45 @@ export const fragmentOrderDetails = gql`}`;+export const orderListQuery = gql`+ ${fragmentAddress}+ query OrderList($first: Int, $after: String, $last: Int, $before: String) {+ orders(before: $before, after: $after, first: $first, last: $last) {+ edges {+ node {+ __typename+ billingAddress {+ ...AddressFragment+ }+ created+ id+ number+ paymentStatus+ status+ total {+ __typename+ gross {+ __typename+ amount+ currency+ }+ }+ userEmail+ }+ }+ pageInfo {+ hasPreviousPage+ hasNextPage+ startCursor+ endCursor+ }+ }+ }+`;+export const TypedOrderListQuery = TypedQuery<OrderList, OrderListVariables>(+ orderListQuery+);+export const orderDetailsQuery = gql`${fragmentOrderDetails}query OrderDetails($id: ID!) {diff --git a/saleor/static/dashboard-next/orders/types/AddressFragment.ts b/saleor/static/dashboard-next/orders/types/AddressFragment.tsindex 145eac914d..a291defeb6 100644--- a/saleor/static/dashboard-next/orders/types/AddressFragment.ts+++ b/saleor/static/dashboard-next/orders/types/AddressFragment.ts@@ -13,13 +13,13 @@ export interface AddressFragment_country {export interface AddressFragment {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: AddressFragment_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;diff --git a/saleor/static/dashboard-next/orders/types/OrderCancel.ts b/saleor/static/dashboard-next/orders/types/OrderCancel.tsindex 1976f64c9a..a9d5c74ea9 100644--- a/saleor/static/dashboard-next/orders/types/OrderCancel.ts+++ b/saleor/static/dashboard-next/orders/types/OrderCancel.ts@@ -15,13 +15,13 @@ export interface OrderCancel_orderCancel_order_billingAddress_country {export interface OrderCancel_orderCancel_order_billingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderCancel_orderCancel_order_billingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;@@ -115,13 +115,13 @@ export interface OrderCancel_orderCancel_order_shippingAddress_country {export interface OrderCancel_orderCancel_order_shippingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderCancel_orderCancel_order_shippingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;diff --git a/saleor/static/dashboard-next/orders/types/OrderCapture.ts b/saleor/static/dashboard-next/orders/types/OrderCapture.tsindex b7643dbada..ee9ddf98b2 100644--- a/saleor/static/dashboard-next/orders/types/OrderCapture.ts+++ b/saleor/static/dashboard-next/orders/types/OrderCapture.ts@@ -21,13 +21,13 @@ export interface OrderCapture_orderCapture_order_billingAddress_country {export interface OrderCapture_orderCapture_order_billingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderCapture_orderCapture_order_billingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;@@ -121,13 +121,13 @@ export interface OrderCapture_orderCapture_order_shippingAddress_country {export interface OrderCapture_orderCapture_order_shippingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderCapture_orderCapture_order_shippingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;diff --git a/saleor/static/dashboard-next/orders/types/OrderDetails.ts b/saleor/static/dashboard-next/orders/types/OrderDetails.tsindex ccb5933549..a5afe4c691 100644--- a/saleor/static/dashboard-next/orders/types/OrderDetails.ts+++ b/saleor/static/dashboard-next/orders/types/OrderDetails.ts@@ -15,13 +15,13 @@ export interface OrderDetails_order_billingAddress_country {export interface OrderDetails_order_billingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderDetails_order_billingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;@@ -115,13 +115,13 @@ export interface OrderDetails_order_shippingAddress_country {export interface OrderDetails_order_shippingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderDetails_order_shippingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;diff --git a/saleor/static/dashboard-next/orders/types/OrderDetailsFragment.ts b/saleor/static/dashboard-next/orders/types/OrderDetailsFragment.tsindex 2a3fc34aa0..54f958881a 100644--- a/saleor/static/dashboard-next/orders/types/OrderDetailsFragment.ts+++ b/saleor/static/dashboard-next/orders/types/OrderDetailsFragment.ts@@ -15,13 +15,13 @@ export interface OrderDetailsFragment_billingAddress_country {export interface OrderDetailsFragment_billingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderDetailsFragment_billingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;@@ -115,13 +115,13 @@ export interface OrderDetailsFragment_shippingAddress_country {export interface OrderDetailsFragment_shippingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderDetailsFragment_shippingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;diff --git a/saleor/static/dashboard-next/orders/types/OrderDraftUpdate.ts b/saleor/static/dashboard-next/orders/types/OrderDraftUpdate.tsindex a6d78e13f6..172ac84875 100644--- a/saleor/static/dashboard-next/orders/types/OrderDraftUpdate.ts+++ b/saleor/static/dashboard-next/orders/types/OrderDraftUpdate.ts@@ -21,13 +21,13 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_billingAddress_countryexport interface OrderDraftUpdate_draftOrderUpdate_order_billingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderDraftUpdate_draftOrderUpdate_order_billingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;@@ -121,13 +121,13 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_shippingAddress_countryexport interface OrderDraftUpdate_draftOrderUpdate_order_shippingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderDraftUpdate_draftOrderUpdate_order_shippingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;diff --git a/saleor/static/dashboard-next/orders/types/OrderLineAdd.ts b/saleor/static/dashboard-next/orders/types/OrderLineAdd.tsindex 88fd6997da..e3c14e509c 100644--- a/saleor/static/dashboard-next/orders/types/OrderLineAdd.ts+++ b/saleor/static/dashboard-next/orders/types/OrderLineAdd.ts@@ -21,13 +21,13 @@ export interface OrderLineAdd_draftOrderLineCreate_order_billingAddress_countryexport interface OrderLineAdd_draftOrderLineCreate_order_billingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderLineAdd_draftOrderLineCreate_order_billingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;@@ -121,13 +121,13 @@ export interface OrderLineAdd_draftOrderLineCreate_order_shippingAddress_countryexport interface OrderLineAdd_draftOrderLineCreate_order_shippingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderLineAdd_draftOrderLineCreate_order_shippingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;diff --git a/saleor/static/dashboard-next/orders/types/OrderLineDelete.ts b/saleor/static/dashboard-next/orders/types/OrderLineDelete.tsindex 498336a341..e58af37806 100644--- a/saleor/static/dashboard-next/orders/types/OrderLineDelete.ts+++ b/saleor/static/dashboard-next/orders/types/OrderLineDelete.ts@@ -21,13 +21,13 @@ export interface OrderLineDelete_draftOrderLineDelete_order_billingAddress_countexport interface OrderLineDelete_draftOrderLineDelete_order_billingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderLineDelete_draftOrderLineDelete_order_billingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;@@ -121,13 +121,13 @@ export interface OrderLineDelete_draftOrderLineDelete_order_shippingAddress_counexport interface OrderLineDelete_draftOrderLineDelete_order_shippingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderLineDelete_draftOrderLineDelete_order_shippingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;diff --git a/saleor/static/dashboard-next/orders/types/OrderLineUpdate.ts b/saleor/static/dashboard-next/orders/types/OrderLineUpdate.tsindex 77fdbb245d..6d31a4ab64 100644--- a/saleor/static/dashboard-next/orders/types/OrderLineUpdate.ts+++ b/saleor/static/dashboard-next/orders/types/OrderLineUpdate.ts@@ -21,13 +21,13 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_billingAddress_countexport interface OrderLineUpdate_draftOrderLineUpdate_order_billingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderLineUpdate_draftOrderLineUpdate_order_billingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;@@ -121,13 +121,13 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_shippingAddress_counexport interface OrderLineUpdate_draftOrderLineUpdate_order_shippingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderLineUpdate_draftOrderLineUpdate_order_shippingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;diff --git a/saleor/static/dashboard-next/orders/types/OrderList.ts b/saleor/static/dashboard-next/orders/types/OrderList.tsindex 548a981e83..514398837f 100644--- a/saleor/static/dashboard-next/orders/types/OrderList.ts+++ b/saleor/static/dashboard-next/orders/types/OrderList.ts@@ -7,6 +7,28 @@ import { PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";// GraphQL query operation: OrderList// ====================================================+export interface OrderList_orders_edges_node_billingAddress_country {+ __typename: "CountryDisplay";+ code: string;+ country: string;+}++export interface OrderList_orders_edges_node_billingAddress {+ __typename: "Address";+ city: string;+ cityArea: string;+ companyName: string;+ country: OrderList_orders_edges_node_billingAddress_country;+ countryArea: string;+ firstName: string;+ id: string;+ lastName: string;+ phone: string | null;+ postalCode: string;+ streetAddress1: string;+ streetAddress2: string;+}+export interface OrderList_orders_edges_node_total_gross {__typename: "Money";amount: number;@@ -20,9 +42,10 @@ export interface OrderList_orders_edges_node_total {export interface OrderList_orders_edges_node {__typename: "Order";+ billingAddress: OrderList_orders_edges_node_billingAddress | null;+ created: any;id: string;number: string | null;- created: any;paymentStatus: PaymentStatusEnum | null;status: OrderStatus;total: OrderList_orders_edges_node_total | null;@@ -31,7 +54,6 @@ export interface OrderList_orders_edges_node {export interface OrderList_orders_edges {__typename: "OrderCountableEdge";- cursor: string;node: OrderList_orders_edges_node;}diff --git a/saleor/static/dashboard-next/orders/types/OrderRefund.ts b/saleor/static/dashboard-next/orders/types/OrderRefund.tsindex 9ab2c86f2d..313e70c532 100644--- a/saleor/static/dashboard-next/orders/types/OrderRefund.ts+++ b/saleor/static/dashboard-next/orders/types/OrderRefund.ts@@ -21,13 +21,13 @@ export interface OrderRefund_orderRefund_order_billingAddress_country {export interface OrderRefund_orderRefund_order_billingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderRefund_orderRefund_order_billingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;@@ -121,13 +121,13 @@ export interface OrderRefund_orderRefund_order_shippingAddress_country {export interface OrderRefund_orderRefund_order_shippingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderRefund_orderRefund_order_shippingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;diff --git a/saleor/static/dashboard-next/orders/types/OrderRelease.ts b/saleor/static/dashboard-next/orders/types/OrderRelease.tsindex 49915af6e7..1e9f79fdba 100644--- a/saleor/static/dashboard-next/orders/types/OrderRelease.ts+++ b/saleor/static/dashboard-next/orders/types/OrderRelease.ts@@ -15,13 +15,13 @@ export interface OrderRelease_orderRelease_order_billingAddress_country {export interface OrderRelease_orderRelease_order_billingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderRelease_orderRelease_order_billingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;@@ -115,13 +115,13 @@ export interface OrderRelease_orderRelease_order_shippingAddress_country {export interface OrderRelease_orderRelease_order_shippingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderRelease_orderRelease_order_shippingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;diff --git a/saleor/static/dashboard-next/orders/types/OrderUpdate.ts b/saleor/static/dashboard-next/orders/types/OrderUpdate.tsindex 46266b7ae7..761ba71766 100644--- a/saleor/static/dashboard-next/orders/types/OrderUpdate.ts+++ b/saleor/static/dashboard-next/orders/types/OrderUpdate.ts@@ -21,13 +21,13 @@ export interface OrderUpdate_orderUpdate_order_billingAddress_country {export interface OrderUpdate_orderUpdate_order_billingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderUpdate_orderUpdate_order_billingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;@@ -43,13 +43,13 @@ export interface OrderUpdate_orderUpdate_order_shippingAddress_country {export interface OrderUpdate_orderUpdate_order_shippingAddress {__typename: "Address";- id: string;city: string;cityArea: string;companyName: string;country: OrderUpdate_orderUpdate_order_shippingAddress_country;countryArea: string;firstName: string;+ id: string;lastName: string;phone: string | null;postalCode: string;diff --git a/saleor/static/dashboard-next/theme.ts b/saleor/static/dashboard-next/theme.tsindex f623657d53..07b6d39e8c 100644--- a/saleor/static/dashboard-next/theme.ts+++ b/saleor/static/dashboard-next/theme.ts@@ -103,8 +103,7 @@ export default createMuiTheme({paddingLeft: 24 + "px",textAlign: "left" as "left"},- paddingLeft: 0,- textAlign: "center" as "center"+ paddingLeft: 0}},MuiTableRow: {