Skip to content

Commit

Permalink
[plasmic] Sync project pricing
Browse files Browse the repository at this point in the history
This is an automated commit generated by Hojat Khajavi
using Plasmic (https://plasmic.app/).

Project name: pricing
Project URL: https://studio.plasmic.app/projects/seYsnBL1P3AiXaFGNEMUUM
  • Loading branch information
plasmicops committed Jul 9, 2024
1 parent f3b6dd4 commit baade87
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
33 changes: 30 additions & 3 deletions components/plasmic/pricing/PlasmicPricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,35 @@ function PlasmicPricing__RenderFunc(props: {
$steps["getUser"] = await $steps["getUser"];
}

$steps["login"] =
$steps.getUser.status !== 200
? (() => {
const actionArgs = {
destination:
"https://www.paziresh24.com/login/?redirect_url=https://pricing.paziresh24.com/"
};
return (({ destination }) => {
if (
typeof destination === "string" &&
destination.startsWith("#")
) {
document
.getElementById(destination.substr(1))
.scrollIntoView({ behavior: "smooth" });
} else {
__nextRouter?.push(destination);
}
})?.apply(null, [actionArgs]);
})()
: undefined;
if (
$steps["login"] != null &&
typeof $steps["login"] === "object" &&
typeof $steps["login"].then === "function"
) {
$steps["login"] = await $steps["login"];
}

$steps["updateUser"] =
$steps.getUser.status == 200
? (() => {
Expand Down Expand Up @@ -369,9 +398,7 @@ function PlasmicPricing__RenderFunc(props: {
? (() => {
const actionArgs = {
customFunction: async () => {
return (() => {
return alert($steps.getUser.data.users[0]);
})();
return alert($steps.getUser.data.users[0]);
}
};
return (({ customFunction }) => {
Expand Down
4 changes: 2 additions & 2 deletions plasmic.lock
Original file line number Diff line number Diff line change
Expand Up @@ -509,12 +509,12 @@
{
"type": "renderModule",
"assetId": "IXVCbPZ5-8gj",
"checksum": "2462aab30f892539b9af7af228424452"
"checksum": "cf3c606bf08e78b519b8c2f7d4d32091"
},
{
"type": "cssRules",
"assetId": "IXVCbPZ5-8gj",
"checksum": "2462aab30f892539b9af7af228424452"
"checksum": "cf3c606bf08e78b519b8c2f7d4d32091"
},
{
"type": "icon",
Expand Down

0 comments on commit baade87

Please sign in to comment.