Skip to content

Commit 2e44482

Browse files
authored
Merge pull request #3198 from gluestack/feat/web-changes
Feat/web changes
2 parents cb4620d + 270bd1b commit 2e44482

File tree

2 files changed

+6
-6
lines changed
  • apps/website
    • components/page-components/landing-page/WebsiteLayout
    • utils/context/theme-context

2 files changed

+6
-6
lines changed

apps/website/components/page-components/landing-page/WebsiteLayout/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
22
import { Box } from '@/components/ui/box';
33
import Header from '@/components/page-components/header';
44
import ResponsiveSidebar from '@/components/page-components/landing-page/ResponsiveSidebar';
5-
import ProductHuntBanner from '../ProductHuntBanner';
5+
// import ProductHuntBanner from '../ProductHuntBanner';
66

77
function WebsiteLayout({
88
children,
@@ -11,7 +11,7 @@ function WebsiteLayout({
1111
children: any;
1212
}) {
1313
const [isOpenSidebar, setIsOpenSidebar] = useState(false);
14-
const [showPHBanner, setShowPHBanner] = useState(true);
14+
// const [showPHBanner, setShowPHBanner] = useState(true);
1515
useEffect(() => {
1616
if (isOpenSidebar) {
1717
document.body.style.overflow = 'hidden';
@@ -46,10 +46,10 @@ function WebsiteLayout({
4646
isOpenSidebar={isOpenSidebar}
4747
setIsOpenSidebar={setIsOpenSidebar}
4848
/>
49-
<ProductHuntBanner
49+
{/* <ProductHuntBanner
5050
showPHBanner={showPHBanner}
5151
setShowPHBanner={setShowPHBanner}
52-
/>
52+
/> */}
5353
{/* Remove this later */}
5454
<Box className={` ${isOpenSidebar ? 'opacity-0' : 'opacity-100'} `}>
5555
{children}

apps/website/utils/context/theme-context/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ type ThemeContextType = {
2121
};
2222

2323
const ThemeContext = createContext<ThemeContextType>({
24-
colorMode: 'light',
24+
colorMode: 'dark',
2525
setColorMode: () => {},
2626
themeMode: 'example',
2727
setThemeMode: () => {},
2828
});
2929

3030
const ThemeProvider = ({ children }: { children: React.ReactNode }) => {
3131
const [colorMode, setColorMode] = useState<'light' | 'dark' | 'system'>(
32-
'light'
32+
'dark'
3333
);
3434
const [themeMode, setThemeMode] = useState<ThemeMode>('example');
3535
const [mounted, setMounted] = useState(false);

0 commit comments

Comments
 (0)