From dd9292f3979a32ad4d33a9eda17d6f5845ea99d2 Mon Sep 17 00:00:00 2001 From: Mykhailo Mohyliuk Date: Mon, 24 Jul 2023 10:21:08 +0300 Subject: [PATCH] preview styling --- .../src/components/AppBuilder/AppMock.tsx | 14 ++-- .../src/pages/AppBuilder/AppBuilder.tsx | 68 +++++++++---------- 2 files changed, 40 insertions(+), 42 deletions(-) diff --git a/client-web/src/components/AppBuilder/AppMock.tsx b/client-web/src/components/AppBuilder/AppMock.tsx index d578f94d..f4c3a3cf 100644 --- a/client-web/src/components/AppBuilder/AppMock.tsx +++ b/client-web/src/components/AppBuilder/AppMock.tsx @@ -4,6 +4,7 @@ import defaultLoginBackground from "../../assets/images/login_background.png"; import defaultCoinPath from "../../assets/images/coin.png"; import profilePic from "../../assets/images/profilepic.png"; import { isValidHexCode } from "../../utils"; +import { Box } from "@mui/material"; export default function AppMock(props: TCustomDetails) { const { @@ -258,15 +259,11 @@ export default function AppMock(props: TCustomDetails) { }; return ( -
@@ -287,6 +285,6 @@ export default function AppMock(props: TCustomDetails) { >
-
+ ); } diff --git a/client-web/src/pages/AppBuilder/AppBuilder.tsx b/client-web/src/pages/AppBuilder/AppBuilder.tsx index 0ccf6c1c..b7e5496f 100644 --- a/client-web/src/pages/AppBuilder/AppBuilder.tsx +++ b/client-web/src/pages/AppBuilder/AppBuilder.tsx @@ -178,8 +178,6 @@ export default function AppBuilder() { const res = await httpWithAuth().post("apps/check-domain-name", { domainName, }); - // console.log(res); - // setDomain(`${domainName}`); setDomainNameError(false); } catch (error) { console.log(error); @@ -220,7 +218,7 @@ export default function AppBuilder() { try { const res = await updateAppSettings(appId, data); updateApp(res.data.result); - showSnackbar('success', 'Your app is ready to use') + showSnackbar("success", "Your app is ready to use"); } catch (error) { showSnackbar("error", "Cannot save settings"); console.log({ error }); @@ -381,9 +379,6 @@ export default function AppBuilder() { variant="outlined" value={coinName} onChange={(e) => setCoinName(e.target.value)} - // helperText={ - // "Name of your internal coin used for gamification and token economy. Leave “Coin” if unsure." - // } /> - {/* - setCoinSymbol(e.target.value)} - /> - */} + @@ -531,7 +514,7 @@ export default function AppBuilder() { } > {buildStage === "preparing" ? "Preparing" : "Prepare"} React @@ -634,7 +616,6 @@ export default function AppBuilder() {