Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6826 feature flag for growl #6827

Merged
merged 9 commits into from
Feb 21, 2024
4 changes: 3 additions & 1 deletion packages/commonwealth/client/scripts/views/Sublayout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'Sublayout.scss';
import clsx from 'clsx';
import useBrowserWindow from 'hooks/useBrowserWindow';
import { useFlag } from 'hooks/useFlag';
import useForceRerender from 'hooks/useForceRerender';
import useWindowResize from 'hooks/useWindowResize';
import React, { useEffect, useState } from 'react';
Expand Down Expand Up @@ -34,6 +35,7 @@ const Sublayout = ({
onResize: () => setResizing(true),
resizeListenerUpdateDeps: [resizing],
});
const communityStakeEnabled = useFlag('communityStake');

const { toggleMobileView } = useWindowResize({
setMenu,
Expand Down Expand Up @@ -113,7 +115,7 @@ const Sublayout = ({
</div>
)}
</div>
<StakeGrowl />
{communityStakeEnabled && <StakeGrowl />}
</div>
{isWindowExtraSmall && <MobileNavigation />}
</div>
Expand Down
Loading