Jelajahi Sumber

refactor: simplify badge rendering logic in SelectablePagePageList component

Shun Miyazawa 8 bulan lalu
induk
melakukan
42768121c2

+ 2 - 10
apps/app/src/features/openai/client/components/AiAssistant/AiAssistantManagementModal/SelectablePagePageList.tsx

@@ -234,19 +234,11 @@ export const SelectablePagePageList = (props: SelectablePagePageListProps): JSX.
               methodButtonPosition={methodButtonPosition}
               methodButtonPosition={methodButtonPosition}
             />
             />
 
 
-            { !page.edited  && (
-              <span className={`badge bg-body-secondary rounded-pill ${methodButtonPosition === 'left' ? 'me-2' : ''}`}>
-                <span className="text-body-tertiary">
-                  {page.descendantCount}
-                </span>
-              </span>
-            )}
-
-            {/* <span className={`badge bg-body-secondary rounded-pill ${methodButtonPosition === 'left' ? 'me-2' : ''}`}>
+            <span className={`badge bg-body-secondary rounded-pill ${methodButtonPosition === 'left' ? 'me-2' : ''}`}>
               <span className="text-body-tertiary">
               <span className="text-body-tertiary">
                 {page.descendantCount}
                 {page.descendantCount}
               </span>
               </span>
-            </span> */}
+            </span>
 
 
             {methodButtonPosition === 'right'
             {methodButtonPosition === 'right'
               && (
               && (