commit changes
This commit is contained in:
parent
6f21f2f12b
commit
1789b83c2d
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"extends": [
|
||||||
|
"development"
|
||||||
|
],
|
||||||
|
"hints": {
|
||||||
|
"no-inline-styles": "off"
|
||||||
|
}
|
||||||
|
}
|
|
@ -15,6 +15,7 @@ import {
|
||||||
Link,
|
Link,
|
||||||
TableCellLayout,
|
TableCellLayout,
|
||||||
TableColumnDefinition,
|
TableColumnDefinition,
|
||||||
|
tokens,
|
||||||
} from '@fluentui/react-components';
|
} from '@fluentui/react-components';
|
||||||
|
|
||||||
import { IOrder } from '../../models/IOrder';
|
import { IOrder } from '../../models/IOrder';
|
||||||
|
@ -88,7 +89,11 @@ const columns: TableColumnDefinition<IOrder>[] = [
|
||||||
return <span style={{ fontWeight: 700 }}>Total</span>;
|
return <span style={{ fontWeight: 700 }}>Total</span>;
|
||||||
},
|
},
|
||||||
renderCell: (item) => {
|
renderCell: (item) => {
|
||||||
return <TableCellLayout truncate>{` $ ${item.total} `} </TableCellLayout>;
|
return (
|
||||||
|
<TableCellLayout style={{ color: tokens.colorBrandForeground1, fontWeight: tokens.fontWeightMedium }} truncate>
|
||||||
|
{` $ ${item.total} `}
|
||||||
|
</TableCellLayout>
|
||||||
|
);
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
createTableColumn<IOrder>({
|
createTableColumn<IOrder>({
|
||||||
|
@ -160,14 +165,14 @@ const columnSizingOptions = {
|
||||||
idealWidth: 70,
|
idealWidth: 70,
|
||||||
},
|
},
|
||||||
total: {
|
total: {
|
||||||
defaultWidth:100,
|
defaultWidth: 100,
|
||||||
minWidth: 100,
|
minWidth: 100,
|
||||||
idealWidth: 100,
|
idealWidth: 100,
|
||||||
},
|
},
|
||||||
orderDate: {
|
orderDate: {
|
||||||
defaultWidth: 100,
|
defaultWidth: 100,
|
||||||
minWidth: 100,
|
minWidth: 100,
|
||||||
idealWidth:120,
|
idealWidth: 120,
|
||||||
},
|
},
|
||||||
status: {
|
status: {
|
||||||
defaultWidth: 180,
|
defaultWidth: 180,
|
||||||
|
|
Loading…
Reference in New Issue