diff --git a/client/package.json b/client/package.json
index 44fe2126d..c55921ada 100644
--- a/client/package.json
+++ b/client/package.json
@@ -12,10 +12,12 @@
"dotenv": "^8.2.0",
"firebase": "^7.5.0",
"graphql": "^14.5.8",
+ "i18next": "^19.0.2",
"node-sass": "^4.13.0",
"react": "^16.12.0",
"react-apollo": "^3.1.3",
"react-dom": "^16.12.0",
+ "react-i18next": "^11.2.7",
"react-number-format": "^4.3.1",
"react-router-dom": "^5.1.2",
"react-scripts": "3.2.0",
diff --git a/client/src/App/App.js b/client/src/App/App.js
index 07fe638d4..2c2c8eeb7 100644
--- a/client/src/App/App.js
+++ b/client/src/App/App.js
@@ -13,7 +13,7 @@ import ErrorBoundary from "../components/error-boundary/error-boundary.component
import { auth } from "../firebase/firebase.utils";
import { UPSERT_USER } from "../graphql/user.queries";
import { GET_CURRENT_USER } from "../graphql/local.queries";
-import { QUERY_BODYSHOP } from "../graphql/bodyshop.queries";
+// import { QUERY_BODYSHOP } from "../graphql/bodyshop.queries";
import PrivateRoute from "../utils/private-route";
@@ -61,22 +61,22 @@ export default () => {
console.log("User login upsert error.", error);
});
- apolloClient
- .query({
- query: QUERY_BODYSHOP,
- fetchPolicy: "network-only"
- })
- .then(r => {
- const bodyShopData = r.data.bodyshops[0];
- apolloClient.writeData({
- data: {
- bodyShopData: { ...bodyShopData, __typename: "bodyShopData" }
- }
- });
- })
- .catch(error => {
- console.log("Error getting bodyshop data.", error);
- });
+ // apolloClient
+ // .query({
+ // query: QUERY_BODYSHOP,
+ // fetchPolicy: "network-only"
+ // })
+ // .then(r => {
+ // const bodyShopData = r.data.bodyshops[0];
+ // apolloClient.writeData({
+ // data: {
+ // bodyShopData: { ...bodyShopData, __typename: "bodyShopData" }
+ // }
+ // });
+ // })
+ // .catch(error => {
+ // console.log("Error getting bodyshop data.", error);
+ // });
apolloClient.writeData({
data: {
diff --git a/client/src/components/error-boundary/error-boundary.component.jsx b/client/src/components/error-boundary/error-boundary.component.jsx
index 63ae12f57..7648ee07c 100644
--- a/client/src/components/error-boundary/error-boundary.component.jsx
+++ b/client/src/components/error-boundary/error-boundary.component.jsx
@@ -22,7 +22,7 @@ class ErrorBoundary extends React.Component {
render() {
if (this.state.hasErrored === true) {
- return
Uh oh, something went wrong. {this.state.error}
;
+ return Uh oh, something went wrong.
;
} else {
return this.props.children;
}
diff --git a/client/src/components/global-search/global-search.component.jsx b/client/src/components/global-search/global-search.component.jsx
index 7b9042fda..77a28d9db 100644
--- a/client/src/components/global-search/global-search.component.jsx
+++ b/client/src/components/global-search/global-search.component.jsx
@@ -25,18 +25,17 @@ function searchResult(query) {
function renderOption(item) {
return (