diff --git a/components/CancelBtn.jsx b/components/CancelBtn.jsx
index b9edb83..2f53957 100644
--- a/components/CancelBtn.jsx
+++ b/components/CancelBtn.jsx
@@ -6,7 +6,7 @@ const CancelBtn = () => (
type="button"
className="bg-gray-400 hover:bg-gray-600 text-black font-bold py-2 px-4 rounded"
>
-
+
Cancel
diff --git a/components/Client.jsx b/components/Client.jsx
index 7876dde..8d2a51a 100644
--- a/components/Client.jsx
+++ b/components/Client.jsx
@@ -19,7 +19,7 @@ const Client = ({ id, name, email, phone, address, company, notes }) => {
name={`edit ${name}`}
className="bg-orange-500 hover:bg-orange-700 text-white font-bold py-2 px-4 rounded"
>
-
+
diff --git a/components/Header.jsx b/components/Header.jsx
index 474a8f6..e043ed7 100644
--- a/components/Header.jsx
+++ b/components/Header.jsx
@@ -17,12 +17,12 @@ const Header = () => (
diff --git a/next.config.js b/next.config.js
index f711c2c..3c1617e 100644
--- a/next.config.js
+++ b/next.config.js
@@ -3,6 +3,7 @@ require('dotenv').config()
module.exports = {
env: {
username: process.env.USERNAME,
- mongodb: process.env.MONGODB_URI
+ mongodb: process.env.MONGODB_URI,
+ weburl: process.env.WEBURL
}
}
diff --git a/pages/edit/[id].jsx b/pages/edit/[id].jsx
index 63ca7c2..cf92923 100644
--- a/pages/edit/[id].jsx
+++ b/pages/edit/[id].jsx
@@ -205,7 +205,7 @@ const Edit = ({ data }) => {
Edit.getInitialProps = async function (context) {
const { id } = context.query
- const res = await fetch(`${process.env.WEBURL}/api/get-client?id=${id}`)
+ const res = await fetch(`${process.env.weburl}/api/get-client?id=${id}`)
const data = await res.json()
return { data: data.user }
diff --git a/pages/index.jsx b/pages/index.jsx
index 75fbb5c..d133c6c 100644
--- a/pages/index.jsx
+++ b/pages/index.jsx
@@ -23,7 +23,7 @@ const Home = ({ clients }) => (
-
+