feat: printing attributes in cards on dashboard
This commit is contained in:
@@ -41,26 +41,6 @@ const useAttributesTableColumns = ({ selectedAttributes }: Props) => {
|
||||
accessorKey: "type.name",
|
||||
size: 120,
|
||||
},
|
||||
// {
|
||||
// header: " ",
|
||||
// Cell: ({ row }) => {
|
||||
// const description = row.original.description ? `Описание: ${row.original.description}` : "";
|
||||
// const info = (
|
||||
// <Box>
|
||||
// <Text>Может быть пустым: {row.original.isNullable ? "да" : "нет"}</Text>
|
||||
// <Text>{defaultValueToStr(row.original.defaultValue, row.original.type.type)}</Text>
|
||||
// <Text>Синхронизировано в группе: {row.original.isApplicableToGroup ? "да" : "нет"}</Text>
|
||||
// <Text>{description}</Text>
|
||||
// </Box>
|
||||
// );
|
||||
// return (
|
||||
// <Tooltip label={info} multiline w={rem(300)}>
|
||||
// <IconInfoCircle />
|
||||
// </Tooltip>
|
||||
// );
|
||||
// },
|
||||
// size: 5,
|
||||
// },
|
||||
{
|
||||
header: "Значение по умолчанию",
|
||||
accessorKey: "defaultValue",
|
||||
@@ -93,6 +73,16 @@ const useAttributesTableColumns = ({ selectedAttributes }: Props) => {
|
||||
),
|
||||
size: 120,
|
||||
},
|
||||
{
|
||||
header: "Вывод на дашборде",
|
||||
accessorKey: "isShownOnDashboard",
|
||||
Cell: ({ cell }) => cell.getValue() ? (
|
||||
<IconCheck />
|
||||
) : (
|
||||
<IconX />
|
||||
),
|
||||
size: 130,
|
||||
},
|
||||
{
|
||||
header: "Может быть пустым",
|
||||
accessorKey: "isNullable",
|
||||
|
||||
Reference in New Issue
Block a user