File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1- import  {  apiAuthenticated  }  from  '@/api/index.ts' ; 
1+ // import { apiAuthenticated } from '@/api/index.ts'; 
2+ import  axios  from  'axios' ; 
23
34export  const  queryPosition  =  async  ( fen : string )  =>  { 
4-   return  await  apiAuthenticated . get ( `/pos?fen=${ fen }  ) ; 
5+   return  await  axios . get ( `http://127.0.0.1:3001 /pos?fen=${ fen }  ) ; 
56} ; 
Original file line number Diff line number Diff line change @@ -24,9 +24,11 @@ export const Dashboard = () => {
2424  } 
2525
2626  return  ( 
27-     < div  className = "container h-full p-16 flex flex-col gap-4 content-center" > 
28-       < p  className = "text-4xl" > { t ( 'title' ) } </ p > 
29-       < DataTable  columns = { columns }  data = { data  ||  [ ] }  /> 
27+     < div  className = "w-full h-full p-16 flex content-center" > 
28+       < div  className = "container flex flex-col gap-4 overflow-y-auto" > 
29+         < p  className = "text-4xl" > { t ( 'title' ) } </ p > 
30+         < DataTable  columns = { columns }  data = { data  ||  [ ] }  /> 
31+       </ div > 
3032    </ div > 
3133  ) ; 
3234} ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments