Removed the Product Hunt Banner but kept it commented out for later

This commit is contained in:
James Ritchie
2023-03-02 18:05:56 +00:00
parent 174954511e
commit 2bb324752e
3 changed files with 8 additions and 7 deletions
@@ -10,7 +10,8 @@ export function AppLayout({
}) {
if (impersonationId) {
return (
<div className="grid h-full w-full grid-rows-[2rem_2rem_3rem_auto_2rem]">
<div className="grid h-full w-full grid-rows-[2rem_3rem_auto_2rem]">
{/* <div className="grid h-full w-full grid-rows-[2rem_2rem_3rem_auto_2rem]"> */}
<ImpersonationBanner impersonationId={impersonationId} />
{children}
</div>
@@ -18,7 +19,8 @@ export function AppLayout({
}
return (
<div className="grid h-full w-full grid-rows-[2rem_3rem_auto_2rem]">
// <div className="grid h-full w-full grid-rows-[3rem_auto_2rem]">
<div className="grid h-full w-full grid-rows-[3rem_auto_2rem]">
{children}
</div>
);
@@ -26,7 +28,8 @@ export function AppLayout({
export function PublicAppLayout({ children }: { children: React.ReactNode }) {
return (
<div className="grid h-full w-full grid-rows-[2rem_auto_auto_2rem]">
<div className="grid h-full w-full grid-rows-[5rem_auto_2rem]">
{/* <div className="grid h-full w-full grid-rows-[2rem_auto_auto_2rem]"> */}
{children}
</div>
);
+1 -3
View File
@@ -39,15 +39,13 @@ export const loader = async ({ request }: LoaderArgs) => {
);
};
const INTERCOM_APP_ID = "pfbctmiv";
export default function App() {
const { impersonationId } = useTypedLoaderData<typeof loader>();
return (
<AppLayout impersonationId={impersonationId}>
<NoMobileOverlay />
<ProductHuntBanner />
{/* <ProductHuntBanner /> */}
<Header />
<AppBody>
<Outlet />
+1 -1
View File
@@ -42,7 +42,7 @@ export default function Public() {
return (
<LayoutComponent>
<ProductHuntBanner />
{/* <ProductHuntBanner /> */}
{loaderData.userId ? <Header /> : <MarketingHeader />}
<AppBody>
<Outlet />