Skip to content

Commit

Permalink
6826 feature flag for growl (#6827)
Browse files Browse the repository at this point in the history
* Fixed overflow issue

* Added feature flag for growl
  • Loading branch information
lzach83 authored Feb 21, 2024
1 parent a7cdff5 commit 5aae853
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 5aae853

Please sign in to comment.