commit changes

This commit is contained in:
João Mendes 2023-11-05 21:11:58 +00:00
parent 6f21f2f12b
commit 1789b83c2d
2 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,8 @@
{
"extends": [
"development"
],
"hints": {
"no-inline-styles": "off"
}
}

View File

@ -15,6 +15,7 @@ import {
Link,
TableCellLayout,
TableColumnDefinition,
tokens,
} from '@fluentui/react-components';
import { IOrder } from '../../models/IOrder';
@ -88,7 +89,11 @@ const columns: TableColumnDefinition<IOrder>[] = [
return <span style={{ fontWeight: 700 }}>Total</span>;
},
renderCell: (item) => {
return <TableCellLayout truncate>{` $ ${item.total} `} </TableCellLayout>;
return (
<TableCellLayout style={{ color: tokens.colorBrandForeground1, fontWeight: tokens.fontWeightMedium }} truncate>
{` $ ${item.total} `}
</TableCellLayout>
);
},
}),
createTableColumn<IOrder>({
@ -160,14 +165,14 @@ const columnSizingOptions = {
idealWidth: 70,
},
total: {
defaultWidth:100,
defaultWidth: 100,
minWidth: 100,
idealWidth: 100,
},
orderDate: {
defaultWidth: 100,
minWidth: 100,
idealWidth:120,
idealWidth: 120,
},
status: {
defaultWidth: 180,