From ab569f5b235f859cd68e793578d07ba37a25fef4 Mon Sep 17 00:00:00 2001
From: vizor132 <93132083+vizor132@users.noreply.github.com>
Date: Tue, 26 Oct 2021 01:25:52 +0300
Subject: [PATCH 1/7] test of style
---
pages/like-button/[namespace]/[id].js | 32 ++++++++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/pages/like-button/[namespace]/[id].js b/pages/like-button/[namespace]/[id].js
index 5c417bb..7edd833 100644
--- a/pages/like-button/[namespace]/[id].js
+++ b/pages/like-button/[namespace]/[id].js
@@ -1,4 +1,34 @@
-import { LikeButton } from "@lyket/react";
+import { LikeButton } from '@lyket/react';
+
+export Faq = () => {
+ return (
+ <>
+
Do you like pizza?
+
+ {({
+ handlePress,
+ totalLikes,
+ userLiked,
+ isLoading,
+ isCounterVisible
+ }) => (
+ <>
+
+ {isCounterVisible && Total: {totalLikes}
}
+ {userLiked && Great! I like pizza as well!
}
+ >
+ )}
+
+ >
+ )
+};
+
import { useRouter } from "next/router";
export default function Button() {
From 178b066ba8bdf7c220e2fd14c63c9ed4c95ffefd Mon Sep 17 00:00:00 2001
From: vizor132 <93132083+vizor132@users.noreply.github.com>
Date: Tue, 26 Oct 2021 14:02:08 +0300
Subject: [PATCH 2/7] Update [id].js
---
pages/like-button/[namespace]/[id].js | 49 +++++++++++----------------
1 file changed, 20 insertions(+), 29 deletions(-)
diff --git a/pages/like-button/[namespace]/[id].js b/pages/like-button/[namespace]/[id].js
index 7edd833..b39c6d2 100644
--- a/pages/like-button/[namespace]/[id].js
+++ b/pages/like-button/[namespace]/[id].js
@@ -1,33 +1,24 @@
import { LikeButton } from '@lyket/react';
-
-export Faq = () => {
- return (
- <>
- Do you like pizza?
-
- {({
- handlePress,
- totalLikes,
- userLiked,
- isLoading,
- isCounterVisible
- }) => (
- <>
-
- {isCounterVisible && Total: {totalLikes}
}
- {userLiked && Great! I like pizza as well!
}
- >
- )}
-
- >
- )
-};
+
+ {({ handlePress, totalLikes, userLiked, isLoading }) => {
+ return (
+
+
+
Total likes: {totalLikes}
+ {userLiked &&
Thanks for liking pizza!
}
+
+ )
+ }}
+
import { useRouter } from "next/router";
From ae1143cebd7423c2773b69be07c2e231ea8a07f2 Mon Sep 17 00:00:00 2001
From: vizor132 <93132083+vizor132@users.noreply.github.com>
Date: Tue, 26 Oct 2021 14:07:49 +0300
Subject: [PATCH 3/7] Update [id].js
---
pages/like-button/[namespace]/[id].js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pages/like-button/[namespace]/[id].js b/pages/like-button/[namespace]/[id].js
index b39c6d2..9b13f56 100644
--- a/pages/like-button/[namespace]/[id].js
+++ b/pages/like-button/[namespace]/[id].js
@@ -18,7 +18,7 @@ import { LikeButton } from '@lyket/react';
)
}}
-
+;
import { useRouter } from "next/router";
From dc47f26baeb7dc65b3bebf493acd35b3e4127419 Mon Sep 17 00:00:00 2001
From: vizor132 <93132083+vizor132@users.noreply.github.com>
Date: Mon, 17 Jan 2022 21:44:44 +0300
Subject: [PATCH 4/7] Update [id].js
---
pages/like-button/[namespace]/[id].js | 23 +----------------------
1 file changed, 1 insertion(+), 22 deletions(-)
diff --git a/pages/like-button/[namespace]/[id].js b/pages/like-button/[namespace]/[id].js
index 9b13f56..5c417bb 100644
--- a/pages/like-button/[namespace]/[id].js
+++ b/pages/like-button/[namespace]/[id].js
@@ -1,25 +1,4 @@
-import { LikeButton } from '@lyket/react';
-
- {({ handlePress, totalLikes, userLiked, isLoading }) => {
- return (
-
-
-
Total likes: {totalLikes}
- {userLiked &&
Thanks for liking pizza!
}
-
- )
- }}
-;
-
+import { LikeButton } from "@lyket/react";
import { useRouter } from "next/router";
export default function Button() {
From b7f6a0a0a3c1221e5af5cdbb933769b37bd471ef Mon Sep 17 00:00:00 2001
From: vizor132 <93132083+vizor132@users.noreply.github.com>
Date: Mon, 17 Jan 2022 21:53:40 +0300
Subject: [PATCH 5/7] Update [id].js
---
pages/like-button/[namespace]/[id].js | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/pages/like-button/[namespace]/[id].js b/pages/like-button/[namespace]/[id].js
index 5c417bb..fc36776 100644
--- a/pages/like-button/[namespace]/[id].js
+++ b/pages/like-button/[namespace]/[id].js
@@ -1,6 +1,18 @@
import { LikeButton } from "@lyket/react";
import { useRouter } from "next/router";
+
+
export default function Button() {
const router = useRouter();
const { namespace, id } = router.query;
From d09d9500af91110e1407d9db0f015ddb56ea2da8 Mon Sep 17 00:00:00 2001
From: vizor132 <93132083+vizor132@users.noreply.github.com>
Date: Mon, 17 Jan 2022 22:00:15 +0300
Subject: [PATCH 6/7] Update [id].js
---
pages/like-button/[namespace]/[id].js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pages/like-button/[namespace]/[id].js b/pages/like-button/[namespace]/[id].js
index fc36776..2f25f96 100644
--- a/pages/like-button/[namespace]/[id].js
+++ b/pages/like-button/[namespace]/[id].js
@@ -2,7 +2,7 @@ import { LikeButton } from "@lyket/react";
import { useRouter } from "next/router";
Date: Mon, 17 Jan 2022 22:03:53 +0300
Subject: [PATCH 7/7] Update [id].js
---
pages/like-button/[namespace]/[id].js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pages/like-button/[namespace]/[id].js b/pages/like-button/[namespace]/[id].js
index 2f25f96..661dd87 100644
--- a/pages/like-button/[namespace]/[id].js
+++ b/pages/like-button/[namespace]/[id].js
@@ -2,7 +2,7 @@ import { LikeButton } from "@lyket/react";
import { useRouter } from "next/router";