File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 77  ArrowDownTrayIcon , 
88  EllipsisVerticalIcon , 
99  PencilIcon , 
10+   PencilSquareIcon , 
1011  TrashIcon , 
1112  XMarkIcon , 
1213}  from  '@heroicons/react/24/outline' ; 
@@ -76,15 +77,19 @@ export default function Sidebar() {
7677            } ) } 
7778            onClick = { ( )  =>  navigate ( '/' ) } 
7879          > 
79-             + New conversation
80+             < PencilSquareIcon  className = "w-5 h-5"  /> 
81+             New conversation
8082          </ div > 
8183
8284          { /* list of conversations */ } 
83-           { groupedConv . map ( ( group )  =>  ( 
84-             < div > 
85+           { groupedConv . map ( ( group ,   i )  =>  ( 
86+             < div   key = { i } > 
8587              { /* group name (by date) */ } 
8688              { group . title  ? ( 
87-                 < b  className = "block text-xs px-2 mb-2 mt-6" > { group . title } </ b > 
89+                 // we use btn class here to make sure that the padding/margin are aligned with the other items 
90+                 < b  className = "btn btn-ghost btn-xs bg-none btn-disabled block text-xs text-base-content text-start px-2 mb-0 mt-6 font-bold" > 
91+                   { group . title } 
92+                 </ b > 
8893              )  : ( 
8994                < div  className = "h-2"  /> 
9095              ) } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments