Skip to content

Commit

Permalink
Merge pull request #976 from singnet/ui-fix
Browse files Browse the repository at this point in the history
[SPT-836] Fixed display od demo unavailable component
  • Loading branch information
MarinaFedy authored Jan 24, 2025
2 parents d4180d8 + 2623980 commit 15356db
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/ServiceDetails/AboutService/DemoToggler.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import StyledButton from "../../common/StyledButton";
import ServiceDemo from "./ServiceDemo";
import serviceOfflineImg from "../../../assets/images/Artboard.png";
import signInImg from "../../../assets/images/signIn.png";
// import NoDemoComponent from "../../common/NoDemoComponent";
import NoDemoComponent from "../../common/NoDemoComponent";

import { useStyles } from "./styles";
import LoginActionsBtns, { actionButtonsThemes } from "../../common/Header/HeaderActions/LoginActionsBtns";
Expand Down Expand Up @@ -60,10 +60,9 @@ const DemoToggler = ({
);
}

// if (process.env.REACT_APP_SANDBOX !== "true" && false) {
// // && !demoComponentRequired) {
// return <NoDemoComponent />;
// }
if (process.env.REACT_APP_SANDBOX !== "true" && !demoComponentRequired) {
return <NoDemoComponent />;
}

return <ServiceDemo service={service} />;
};
Expand Down

0 comments on commit 15356db

Please sign in to comment.