@snapdragonsnursery/react-components 1.3.1 → 1.3.3

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": "@snapdragonsnursery/react-components",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -315,7 +315,7 @@ const EmployeeSearchModal = ({
315
315
  setError(null);
316
316
 
317
317
  try {
318
- const functionKey = process.env.VITE_COMMON_API_FUNCTION_KEY || "";
318
+ const functionKey = import.meta.env.VITE_COMMON_API_FUNCTION_KEY || "";
319
319
 
320
320
  const params = new URLSearchParams({
321
321
  entra_id: accounts[0].localAccountId,
@@ -394,7 +394,7 @@ const EmployeeSearchModal = ({
394
394
 
395
395
  const apiResponse = await fetch(
396
396
  `${
397
- process.env.VITE_COMMON_API_BASE_URL ||
397
+ import.meta.env.VITE_COMMON_API_BASE_URL ||
398
398
  "https://snaps-common-api.azurewebsites.net"
399
399
  }/api/search-employees?${params}`,
400
400
  {
@@ -337,7 +337,7 @@ const EmployeeSearchPage = ({
337
337
  setError(null);
338
338
 
339
339
  try {
340
- const functionKey = process.env.VITE_COMMON_API_FUNCTION_KEY || "";
340
+ const functionKey = import.meta.env.VITE_COMMON_API_FUNCTION_KEY || "";
341
341
 
342
342
  const params = new URLSearchParams({
343
343
  entra_id: accounts[0].localAccountId,
@@ -416,7 +416,7 @@ const EmployeeSearchPage = ({
416
416
 
417
417
  const apiResponse = await fetch(
418
418
  `${
419
- process.env.VITE_COMMON_API_BASE_URL ||
419
+ import.meta.env.VITE_COMMON_API_BASE_URL ||
420
420
  "https://snaps-common-api.azurewebsites.net"
421
421
  }/api/search-employees?${params}`,
422
422
  {