File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed 
src/components/settingComponents Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,14 @@ import 'react-loading-skeleton/dist/skeleton.css';
1212import  {  ToastContainer ,  toast  }  from  'react-toastify' ; 
1313import  'react-toastify/dist/ReactToastify.css' ; 
1414import  Markdown  from  'react-markdown' ; 
15+ import  {  Context  }  from  '@/context' ; 
16+ import  {  useContext  }  from  'react' ; 
17+ 
1518
1619export  default  function  General ( )  { 
1720  const  router  =  useRouter ( ) ; 
1821  const  bioRef  =  useRef ( null ) ; 
22+   const  {  role }  =  useContext ( Context ) ; 
1923
2024  const  [ isBannerPopupOpen ,  setIsBannerPopupOpen ]  =  useState ( false ) ; 
2125  const  [ isPopupOpen ,  setIsPopupOpen ]  =  useState ( false ) ; 
@@ -463,6 +467,9 @@ export default function General() {
463467                </ div > 
464468              </ div > 
465469
470+           { 
471+             role  ===  "PRO"  &&  ( 
472+               < > 
466473              < div  className = "sm:col-span-4" > 
467474                < label 
468475                  htmlFor = "photo" 
@@ -497,6 +504,10 @@ export default function General() {
497504                </ div > 
498505              </ div > 
499506
507+               </ > 
508+             ) 
509+           } 
510+ 
500511              < div  className = "sm:col-span-6" > 
501512                < label 
502513                  htmlFor = "description" 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments