From b5a092c844bb25f247c6c65fb5f22aebde5f86e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=CC=81s=CC=8C=20Witek?= Date: Wed, 13 Jun 2018 14:50:32 +0200 Subject: [PATCH] Add proxy --- cart/components/Cart.tsx | 3 - next.config.js => cart/next.config.js | 1 + cart/package.json | 6 +- cart/pages/{index.tsx => cart.tsx} | 2 + cart/pages/checkout.tsx | 8 ++ catalog/components/Product.tsx | 6 +- catalog/components/Products.tsx | 2 +- catalog/next.config.js | 80 ++++++++++++++++ catalog/package.json | 6 +- catalog/pages/product.tsx | 5 + core/components/Button.tsx | 12 ++- core/components/Header.tsx | 6 +- core/components/Layout.tsx | 1 + package.json | 13 ++- proxy.json | 7 ++ yarn.lock | 132 +++++++++++++++++++++++++- 16 files changed, 261 insertions(+), 29 deletions(-) rename next.config.js => cart/next.config.js (98%) rename cart/pages/{index.tsx => cart.tsx} (74%) create mode 100644 cart/pages/checkout.tsx create mode 100644 catalog/next.config.js create mode 100644 proxy.json diff --git a/cart/components/Cart.tsx b/cart/components/Cart.tsx index 7f35d83..123b142 100644 --- a/cart/components/Cart.tsx +++ b/cart/components/Cart.tsx @@ -1,5 +1,4 @@ import React, { Component } from "react"; -import Button from "@panter/core/components/Button"; class Cart extends Component { state = { @@ -66,8 +65,6 @@ class Cart extends Component { - - ); diff --git a/core/components/Header.tsx b/core/components/Header.tsx index d09ec77..418e7d3 100644 --- a/core/components/Header.tsx +++ b/core/components/Header.tsx @@ -1,7 +1,6 @@ import React from "react"; import Logo from "./Logo"; import Link from "next/link"; -import slugify from "../utils/slugify"; const links = [ "Sale", @@ -20,10 +19,7 @@ const Header = () => (