react-support-ukraine-banner 1.0.0 → 1.0.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.
package/README.md CHANGED
@@ -26,9 +26,12 @@ yarn add react-support-ukraine-banner
26
26
 
27
27
  ## Usage
28
28
 
29
+ Because this component is based on [React](https://reactjs.org/), you can use it in any React project. But to make it compatible with Next.js CSS needs to be imported separately.
30
+
29
31
  ```jsx
30
32
  import React from 'react';
31
33
  import SupportUkraineBanner from 'react-support-ukraine-banner';
34
+ import 'react-support-ukraine-banner/dist/SupportUkraineBanner.css';
32
35
 
33
36
  const App = () => (
34
37
  <div>
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
- require("./SupportUkraineBanner.css");
9
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ //import './SupportUkraineBanner.css';
10
+
10
11
  var SupportUkraineBanner = function SupportUkraineBanner() {
11
12
  return /*#__PURE__*/_react["default"].createElement("a", {
12
13
  className: "support-ukraine",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-support-ukraine-banner",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "React component to show support for Ukraine with u24.gov.ua link on the top of the page.",
5
5
  "main": "dist/SupportUkraineBanner.js",
6
6
  "scripts": {