@aclymatepackages/modules 2.1.8 → 2.1.9

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.
@@ -52,7 +52,8 @@ const CompanySelectionChip = _ref => {
52
52
  };
53
53
  const PdlCompanySelect = _ref2 => {
54
54
  let {
55
- onSelectCompany
55
+ onSelectCompany,
56
+ apiKey
56
57
  } = _ref2;
57
58
  const [inputValue, setInputValue] = (0, _react.useState)("");
58
59
  const [matchingCompanies, setMatchingCompanies] = (0, _react.useState)([]);
@@ -60,7 +61,7 @@ const PdlCompanySelect = _ref2 => {
60
61
  const [pdlFetchLoading, setPdlFetchLoading] = (0, _react.useState)(false);
61
62
  const [selectedCompanyId, setSelectedCompanyId] = (0, _react.useState)(null);
62
63
  const pdlClient = (0, _react.useMemo)(() => new _peopledatalabs.default({
63
- apiKey: process.env.REACT_APP_PEOPLEDATALABS_API_KEY
64
+ apiKey
64
65
  }), []);
65
66
  const fetchMatchingCompanies = async () => {
66
67
  setPdlFetchLoading(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aclymatepackages/modules",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "description": "Aclymate modules",
5
5
  "author": "William Loopesko",
6
6
  "main": "dist/index.js",
@@ -35,7 +35,7 @@ const CompanySelectionChip = ({
35
35
  </Grid>
36
36
  );
37
37
 
38
- const PdlCompanySelect = ({ onSelectCompany }) => {
38
+ const PdlCompanySelect = ({ onSelectCompany, apiKey }) => {
39
39
  const [inputValue, setInputValue] = useState("");
40
40
  const [matchingCompanies, setMatchingCompanies] = useState([]);
41
41
  const [inputComplete, setInputComplete] = useState(false);
@@ -45,7 +45,7 @@ const PdlCompanySelect = ({ onSelectCompany }) => {
45
45
  const pdlClient = useMemo(
46
46
  () =>
47
47
  new PDLJS({
48
- apiKey: process.env.REACT_APP_PEOPLEDATALABS_API_KEY,
48
+ apiKey,
49
49
  }),
50
50
  []
51
51
  );