allaw-ui 2.4.0 → 2.4.1

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.
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import styles from "./BlogCard.module.css";
3
- import Link from "next/link";
4
3
  import TinyInfo from "../../atoms/typography/TinyInfo";
5
4
  import Image from "next/image";
6
5
  var BlogTopSection = function (_a) {
@@ -26,7 +25,7 @@ var BlogCard = function (_a) {
26
25
  var articleUrl = _a.articleUrl, imageUrl = _a.imageUrl, tags = _a.tags, date = _a.date, title = _a.title, description = _a.description, _b = _a.preview, preview = _b === void 0 ? false : _b, onClick = _a.onClick;
27
26
  return (React.createElement(React.Fragment, null, onClick ? (React.createElement("button", { className: styles.blogContainer, onClick: function () { return onClick && onClick(); } },
28
27
  !preview && React.createElement(BlogTopSection, { imageUrl: imageUrl, title: title }),
29
- React.createElement(BlogBottomSection, { tags: tags, date: date, title: title, description: description }))) : (React.createElement(Link, { href: articleUrl, className: styles.blogContainer },
28
+ React.createElement(BlogBottomSection, { tags: tags, date: date, title: title, description: description }))) : (React.createElement("a", { href: articleUrl, className: styles.blogContainer },
30
29
  !preview && React.createElement(BlogTopSection, { imageUrl: imageUrl, title: title }),
31
30
  React.createElement(BlogBottomSection, { tags: tags, date: date, title: title, description: description })))));
32
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",