File tree Expand file tree Collapse file tree
packages/apps/human-app/frontend/src/modules/governance-banner/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,11 +5,13 @@ import { useTranslation } from 'react-i18next';
55import { env } from '@/shared/env' ;
66import { useColorMode } from '@/shared/contexts/color-mode' ;
77import { useIsMobile } from '@/shared/hooks/use-is-mobile' ;
8+ import { useWorkerKycStatus } from '@/modules/worker/profile/hooks' ;
89import { useActiveProposalQuery } from '../hooks/use-active-proposal-query' ;
910
1011export function GovernanceBanner ( ) {
1112 const { t } = useTranslation ( ) ;
1213 const { data, isLoading, isError } = useActiveProposalQuery ( ) ;
14+ const { kycApproved } = useWorkerKycStatus ( ) ;
1315 const { colorPalette } = useColorMode ( ) ;
1416 const [ timeRemaining , setTimeRemaining ] = useState ( '00:00:00' ) ;
1517 const isMobile = useIsMobile ( 'lg' ) ;
@@ -41,7 +43,7 @@ export function GovernanceBanner() {
4143 } ;
4244 } , [ data ?. deadline ] ) ;
4345
44- if ( isLoading || isError || ! data ) {
46+ if ( ! kycApproved || isLoading || isError || ! data ) {
4547 return null ;
4648 }
4749
You can’t perform that action at this time.
0 commit comments