Skip to content

Commit

Permalink
hide login and subscription in phase 1 (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
RonenSivak authored Sep 25, 2024
1 parent e03f58f commit ed81fef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions internal/providers/client-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ export function ClientProvider({children}) {
res.json(),
);

// skip subscription example in phase1
const subscriptionExampleIndex = fetchedExamples.findIndex(
(example) => example.data.slug === "/subscriptions",
);
delete fetchedExamples[subscriptionExampleIndex];

setInstalledExamples(
fetchedExamples.filter((example) =>
fetchedInstalledApps.includes(example.data.orderId - 1),
Expand Down
5 changes: 2 additions & 3 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import {Inter} from "next/font/google";

import "@/styles/globals.css";
import styles from "@/styles/app.module.css";

import LoginBar from "./members";
import React, {useEffect} from "react";
import {PageTitle} from "@/internal/components/ui/page-title";
import {GlobalLoader} from "@/src/components/global-loader";
Expand Down Expand Up @@ -51,7 +49,8 @@ export default function App({Component, pageProps}) {
priority
/>
</Link>
<LoginBar/>
{/*Hide login in phase1*/}
{/*<LoginBar/>*/}
</header>
{pageProps.title && (
<PageTitle title={pageProps.title} withBackButton={true}/>
Expand Down

0 comments on commit ed81fef

Please sign in to comment.