diff --git a/packages/commonwealth/client/scripts/views/Sublayout.tsx b/packages/commonwealth/client/scripts/views/Sublayout.tsx index d46ecf5d5a0..6297b670294 100644 --- a/packages/commonwealth/client/scripts/views/Sublayout.tsx +++ b/packages/commonwealth/client/scripts/views/Sublayout.tsx @@ -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'; @@ -34,6 +35,7 @@ const Sublayout = ({ onResize: () => setResizing(true), resizeListenerUpdateDeps: [resizing], }); + const communityStakeEnabled = useFlag('communityStake'); const { toggleMobileView } = useWindowResize({ setMenu, @@ -113,7 +115,7 @@ const Sublayout = ({ )} - + {communityStakeEnabled && } {isWindowExtraSmall && }