Skip to content

Commit a48c692

Browse files
committed
Fix default import of WOO_CONFIG
1 parent ac2cdd5 commit a48c692

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

components/AlgoliaSearch/AlgoliaSearchBox.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import algoliasearch from 'algoliasearch';
22
import { InstantSearch, SearchBox, Hits } from 'react-instantsearch-dom';
33
import { useState } from 'react';
44

5-
import { WOO_CONFIG } from 'utils/config/nextConfig';
5+
import WOO_CONFIG from 'utils/config/nextConfig';
66
import SearchResults from './SearchResults.component';
77

88
const searchClient = algoliasearch(

components/AlgoliaSearch/MobileSearch.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import algoliasearch from 'algoliasearch';
22
import { InstantSearch, SearchBox, Hits } from 'react-instantsearch-dom';
33
import { useState } from 'react';
44

5-
import { WOO_CONFIG } from 'utils/config/nextConfig';
5+
import WOO_CONFIG from 'utils/config/nextConfig';
66
import SearchResults from './SearchResults.component';
77

88
const searchClient = algoliasearch(

components/Category/Categories.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { v4 as uuidv4 } from 'uuid';
44
/**
55
* Map over the categories and display them individually.
66
* Uses uuidv4 for unique key IDs
7-
* @param {Object} categories
7+
* @param {Object} categories Product categories
88
*/
99
const Categories = ({ categories }) => {
1010
return (

components/Product/IndexProducts.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Link from 'next/link';
22
import { v4 as uuidv4 } from 'uuid';
33

4-
import { WOO_CONFIG } from 'utils/config/nextConfig';
4+
import WOO_CONFIG from 'utils/config/nextConfig';
55

66
/**
77
* Displays all of the products as long as length is defined.

components/Product/SingleProduct.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useState, useEffect } from 'react';
33
import AddToCartButton from 'components/Cart/AddToCartButton.component';
44
import LoadingSpinner from 'components/LoadingSpinner/LoadingSpinner.component';
55

6-
import { WOO_CONFIG } from 'utils/config/nextConfig';
6+
import WOO_CONFIG from 'utils/config/nextConfig';
77

88
/**
99
* Shows a single product with an Add To Cart button.

utils/apollo/ApolloClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99

1010
import introspectionQueryResultData from './fragmentTypes';
1111

12-
import { WOO_CONFIG } from 'utils/config/nextConfig';
12+
import WOO_CONFIG from 'utils/config/nextConfig';
1313

1414
// Fragment matcher.
1515
/*const fragmentMatcher = new IntrospectionFragmentMatcher({

utils/functions/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { v4 } from 'uuid';
22

3-
import { WOO_CONFIG } from 'utils/config/nextConfig';
3+
import WOO_CONFIG from 'utils/config/nextConfig';
44

55
/**
66
* Convert price from string to floating value and convert it to use two decimals

0 commit comments

Comments
 (0)