@truedat/audit 6.15.3 → 6.16.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/audit",
3
- "version": "6.15.3",
3
+ "version": "6.16.0",
4
4
  "description": "Truedat Web Audit Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -107,5 +107,5 @@
107
107
  "react-dom": ">= 16.8.6 < 17",
108
108
  "semantic-ui-react": ">= 2.0.3 < 2.2"
109
109
  },
110
- "gitHead": "1dd4aae9eba96a3dc5a6d0ae70264cf0bb4775b3"
110
+ "gitHead": "12471cdcd32bfc11646fa878939d625ed6278a44"
111
111
  }
@@ -2,10 +2,18 @@ import React, { useState, useEffect } from "react";
2
2
  import { connect } from "react-redux";
3
3
  import { Button, Icon, Popup } from "semantic-ui-react";
4
4
  import PropTypes from "prop-types";
5
- import ShareLinkForm from "./ShareLinkForm";
6
5
  import { useIntl } from "react-intl";
6
+ import ShareLinkForm from "./ShareLinkForm";
7
7
 
8
- export const ShareLinkPopup = ({ title, url, name, description, saving, icon }) => {
8
+ export const ShareLinkPopup = ({
9
+ title,
10
+ url,
11
+ name,
12
+ description,
13
+ saving,
14
+ icon,
15
+ popupType,
16
+ }) => {
9
17
  const [open, setOpen] = useState(false);
10
18
  const { formatMessage } = useIntl();
11
19
  useEffect(() => {
@@ -35,13 +43,19 @@ export const ShareLinkPopup = ({ title, url, name, description, saving, icon })
35
43
  trigger={
36
44
  <Button
37
45
  basic
38
- icon={<Icon
39
- name={formatMessage({
40
- id: `shareLink.${icon}.icon`,
41
- defaultMessage: "share alternate",
42
- })}
43
- />}
46
+ icon={
47
+ <Icon
48
+ name={formatMessage({
49
+ id: `shareLink.${icon}.icon`,
50
+ defaultMessage: "share alternate",
51
+ })}
52
+ />
53
+ }
44
54
  className="button icon group-actions"
55
+ data-tooltip={formatMessage({
56
+ id: `shareLink.${popupType}.popUpMessage`,
57
+ defaultMessage: "Sharing",
58
+ })}
45
59
  />
46
60
  }
47
61
  />
@@ -54,6 +68,7 @@ ShareLinkPopup.propTypes = {
54
68
  name: PropTypes.string,
55
69
  description: PropTypes.string,
56
70
  saving: PropTypes.bool,
71
+ popupType: PropTypes.string,
57
72
  };
58
73
 
59
74
  export const mapStateToProps = ({ notificationSaving: saving }) => ({ saving });
@@ -4,6 +4,7 @@ exports[`<ShareLinkPopup /> matches the latest snapshot 1`] = `
4
4
  <div>
5
5
  <button
6
6
  class="ui basic icon button button icon group-actions"
7
+ data-tooltip="Sharing"
7
8
  >
8
9
  <i
9
10
  aria-hidden="true"