allaw-ui 5.3.5 → 5.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,6 @@ import React from "react";
|
|
|
2
2
|
import "./DocumentCard.css";
|
|
3
3
|
import IconButton from "../../atoms/buttons/IconButton";
|
|
4
4
|
import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
|
|
5
|
-
import { Paragraph } from "../../atoms/typography";
|
|
6
5
|
var DocumentCard = function (_a) {
|
|
7
6
|
var _b = _a.type, type = _b === void 0 ? "document" : _b, title = _a.title, _c = _a.date, date = _c === void 0 ? new Date() : _c, onCardClick = _a.onCardClick, status = _a.status, _d = _a.documents, documents = _d === void 0 ? {} : _d, _e = _a.documentCount, documentCount = _e === void 0 ? "" : _e, _f = _a.shadow, shadow = _f === void 0 ? true : _f;
|
|
8
7
|
var getIconName = function () {
|
|
@@ -119,7 +118,7 @@ var DocumentCard = function (_a) {
|
|
|
119
118
|
React.createElement(IconButton, { style: "largeFilled", iconName: getIconName(), color: type == "payment" ? "#25BEEB" : "inherit" }),
|
|
120
119
|
React.createElement("div", { className: "document-card-info" },
|
|
121
120
|
React.createElement("span", { className: "document-card-type" }, getDisplayType(type)),
|
|
122
|
-
React.createElement(
|
|
121
|
+
React.createElement("p", { className: "document-card-title" }, title ? title : "Sans titre"),
|
|
123
122
|
React.createElement("span", { className: "document-card-date" }, formatDate(date)))),
|
|
124
123
|
React.createElement("div", { className: "document-card-right" },
|
|
125
124
|
React.createElement("div", { className: "document-card-status" },
|